次の方法で共有


Distributor Constructor ()

Distributor クラスの新しいインスタンスを初期化します。

名前空間: Microsoft.SqlServer.Management.Nmo
アセンブリ: Microsoft.SqlServer.Smo (microsoft.sqlserver.smo.dll 内)

構文

'宣言
Public Sub New
public Distributor ()
public:
Distributor ()
public Distributor ()
public function Distributor ()

解説

更新されたテキスト :2005 年 12 月 5 日

更新されたサンプル コード :2005 年 12 月 5 日

既定のコンストラクタを使用する場合は、直ちに Name プロパティを設定してから、Parent プロパティを設定する必要があります。他のプロパティは、その後で設定できます。

使用例

次の例では、この既定のコンストラクタの使用方法を示します。既定のコンストラクタではプロパティ値は設定されないため、QuantumDuration プロパティおよび ThreadPoolSize プロパティを設定する必要があります。ディストリビュータの場合、SystemName プロパティも設定する必要があります。

// Define a distributor and set properties.
Distributor dist1 = new Distributor();
dist1.Name = "Distributor";
dist1.Parent = myApplication;
dist1.ThreadPoolSize = 3;
dist1.QuantumDuration = new TimeSpan(0, 1, 0);
dist1.SystemName = notificationServicesHost;
myApplication.Distributors.Add(dist1);
' Define a distributor and set properties.
Dim dist1 As Distributor = New Distributor()
dist1.Name = "Distributor"
dist1.Parent = myApplication
dist1.ThreadPoolSize = 3
dist1.QuantumDuration = New TimeSpan(0, 1, 0)
dist1.SystemName = notificationServicesHost
myApplication.Distributors.Add(dist1)

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

Distributor Class
Distributor Members
Microsoft.SqlServer.Management.Nmo Namespace

その他の技術情報

ディストリビュータ設定の指定
Distributor 要素 (ADF)