Share via


DeliveryChannel Constructor ()

Initializes a new instance of the DeliveryChannel class.

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

Syntax

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

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 also must set the ProtocolName property.

Example

The following examples show how to use this default constructor:

// 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"

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

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

Other Resources

Defining Delivery Channels
DeliveryChannel Element (ICF)