Condividi tramite


DeliveryChannelArgument Constructor ()

Initializes a new instance of the DeliveryChannelArgument class.

Spazio dei nomi: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

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

Osservazioni

Testo aggiornato:5 dicembre 2005

Codice di esempio aggiornato:5 dicembre 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.

Esempio

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)

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

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

Altre risorse

Definizione dei canali di recapito
Argument Element (ICF)