Share via


DeliveryChannelArgument Constructor ()

Initializes a new instance of the DeliveryChannelArgument class.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub New
public DeliveryChannelArgument ()
public:
DeliveryChannelArgument ()
public DeliveryChannelArgument ()
public function DeliveryChannelArgument ()

Remarks

Updated text:5 December 2005

Updated sample code:5 December 2005

If you use the default constructor, you must immediately set the Name property and then set the Parent property. You can then set other properties.

Example

The following examples show how to use this default constructor:

// Define and add arguments for the custom delivery channel
DeliveryChannelArgument myArg1 = new DeliveryChannelArgument();
myArg1.Name = "Arg1";
myArg1.Parent = customChannel;
myArg1.Value = "Value1";
customChannel.DeliveryChannelArguments.Add(myArg1);
' Define and add arguments for the custom delivery channel
Dim myArg1 As DeliveryChannelArgument = _
    New DeliveryChannelArgument()
myArg1.Name = "Arg1"
myArg1.Parent = customChannel
myArg1.Value = "Value1"
customChannel.DeliveryChannelArguments.Add(myArg1)

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

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

Other Resources

Defining Delivery Channels
Argument Element (ICF)