次の方法で共有


DeliveryChannel Constructor ()

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

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

構文

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

解説

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

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

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

使用例

次の例では、この既定のコンストラクタの使用方法を示します。

// Define a delivery channel and set required properties.
DeliveryChannel customChannel = new DeliveryChannel();
customChannel.Name = "MyCustomChannel";
customChannel.Parent = myInstance;
customChannel.ProtocolName = "MyCustomProtocol";
' Define a delivery channel and set required properties.
Dim customChannel As DeliveryChannel = New DeliveryChannel()
customChannel.Name = "MyCustomChannel"
customChannel.Parent = myInstance
customChannel.ProtocolName = "MyCustomProtocol"

プラットフォーム

開発プラットフォーム

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

対象プラットフォーム

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

参照

関連項目

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

その他の技術情報

配信チャネルの定義
DeliveryChannel 要素 (ICF)