DeliveryChannel.DeliveryChannelArguments Property

配信チャネルの引数のコレクションを取得します。

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

構文

'宣言
Public ReadOnly Property DeliveryChannelArguments As DeliveryChannelArgumentCollection
public DeliveryChannelArgumentCollection DeliveryChannelArguments { get; }
public:
property DeliveryChannelArgumentCollection^ DeliveryChannelArguments {
    DeliveryChannelArgumentCollection^ get ();
}
/** @property */
public DeliveryChannelArgumentCollection get_DeliveryChannelArguments ()
public function get DeliveryChannelArguments () : DeliveryChannelArgumentCollection

プロパティ値

配信チャネルの引数を格納する DeliveryChannelArgumentCollection オブジェクトです。

解説

配信チャネルの引数を定義するには、DeliveryChannelArgumentCollection オブジェクトと DeliveryChannelArgument オブジェクトを使用します。

配信チャネルの引数は、特定の配信チャネルへの接続または通知の配信に使用する情報を提供します。配信チャネルの引数の例については、「File 配信チャネルの定義」および「SMTP 配信チャネルの定義」を参照してください。

使用例

次の例は、配信チャネルとその引数を定義する方法を示しています。

// Define a delivery channel that uses the built-in File protocol
DeliveryChannel fileChannel = 
    new DeliveryChannel(myInstance, "FileChannel");
fileChannel.ProtocolName = "File";

// Define and add arguments for the file delivery channel
DeliveryChannelArgument fileNameArg = 
    new DeliveryChannelArgument(fileChannel, "FileName");
fileNameArg.Value = sampleDirectory + 
    @"\Notifications\FileNotifications.txt";
fileChannel.DeliveryChannelArguments.Add(fileNameArg);

// Add the file delivery channel to the instance
myInstance.DeliveryChannels.Add(fileChannel);
' Define a delivery channel using the built-in File protocol
Dim fileChannel As DeliveryChannel = _
    New DeliveryChannel(myInstance, "FileChannel")
fileChannel.ProtocolName = "File"

' Define and add arguments for the file delivery channel
Dim fileNameArg As DeliveryChannelArgument = _
    New DeliveryChannelArgument(fileChannel, "FileName")
fileNameArg.Value = sampleDirectory + _
    "\Notifications\FileNotifications.txt"
fileChannel.DeliveryChannelArguments.Add(fileNameArg)

' Add the file delivery channel to the instance
myInstance.DeliveryChannels.Add(fileChannel)

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

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

対象プラットフォーム

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

参照

関連項目

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

その他の技術情報

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