DeliveryChannelArgument.Value Property
Gets or sets the value of the delivery channel argument.
命名空間: Microsoft.SqlServer.Management.Nmo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
語法
'宣告
Public Property Value As String
public string Value { get; set; }
public:
property String^ Value {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_Value ()
/** @property */
public void set_Value (String value)
public function get Value () : String
public function set Value (value : String)
屬性值
A String of up to 4000 characters that specifies the value of the delivery channel argument.
備註
The distributor passes argument names and values to the associated delivery protocol's Initialize method upon initialization.
範例
The following examples show how to define a custom delivery channel and its arguments:
// Define a delivery channel for the custom protocol
DeliveryChannel customChannel =
new DeliveryChannel(myInstance, "MyCustomChannel");
customChannel.ProtocolName = "MyCustomProtocol";
// Define and add arguments for the custom delivery channel
DeliveryChannelArgument myArg1 =
new DeliveryChannelArgument(customChannel, "Arg1");
myArg1.Value = "Value1";
customChannel.DeliveryChannelArguments.Add(myArg1);
// Add the custom delivery channel to the instance
myInstance.DeliveryChannels.Add(customChannel);
' Define a delivery channel for the custom protocol
Dim customChannel As DeliveryChannel = _
New DeliveryChannel(myInstance, "MyCustomChannel")
customChannel.ProtocolName = "MyCustomProtocol"
' Define and add arguments for the custom delivery channel
Dim myArg1 As DeliveryChannelArgument = _
New DeliveryChannelArgument(customChannel, "Arg1")
myArg1.Value = "Value1"
customChannel.DeliveryChannelArguments.Add(myArg1)
' Add the custom delivery channel to the instance
myInstance.DeliveryChannels.Add(customChannel)
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
DeliveryChannelArgument Class
DeliveryChannelArgument Members
Microsoft.SqlServer.Management.Nmo Namespace
其他資源
定義傳遞通道
Value Element for DeliveryChannel/Arguments/Argument (ICF)