次の方法で共有


Distributor Constructor (Application, String)

Application および名前を使用して、Distributor クラスの新しいインスタンスを初期化します。

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

構文

'宣言
Public Sub New ( _
    application As Application, _
    name As String _
)
public Distributor (
    Application application,
    string name
)
public:
Distributor (
    Application^ application, 
    String^ name
)
public Distributor (
    Application application, 
    String name
)
public function Distributor (
    application : Application, 
    name : String
)

パラメータ

  • application
    ディストリビュータに対応する Application です。このパラメータは Parent プロパティを設定します。
  • name
    ディストリビュータの名前を示す最大 256 文字の String です。

    名前は変更できません。ディストリビュータの名前の変更が必要な場合は、ディストリビュータをいったん削除し、新しい名前のディストリビュータを定義して追加する必要があります。

解説

各ディストリビュータは、Application ごとに指定します。ディストリビュータの論理名は、管理およびトラブルシューティングの記録を参照するためにのみ使用されます。

使用例

次の例は、ディストリビュータを作成し、ディストリビュータのプロパティを定義して、アプリケーションに追加する方法を示しています。

// Define distributor for application
Distributor distributor = 
    new Distributor(myApplication, "Distributor");
distributor.SystemName = notificationServicesHost;
distributor.QuantumDuration = new TimeSpan(0, 0, 15);
distributor.ThreadPoolSize = 2;
myApplication.Distributors.Add(distributor);
' Define distributor for application
Dim distributor As Distributor = New Distributor( _
    myApplication, "Distributor")
distributor.SystemName = notificationServicesHost
distributor.QuantumDuration = New TimeSpan(0, 0, 15)
distributor.ThreadPoolSize = 2
myApplication.Distributors.Add(distributor)

プラットフォーム

開発プラットフォーム

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

対象プラットフォーム

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

参照

関連項目

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

その他の技術情報

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