Delen via


ServiceContractCollection.Add Method

Adds a ServiceContract to the collection.

Namespace:  Microsoft.SqlServer.Management.Smo.Broker
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub Add ( _
    serviceContract As ServiceContract _
)
'Usage
Dim instance As ServiceContractCollection 
Dim serviceContract As ServiceContract

instance.Add(serviceContract)
public void Add(
    ServiceContract serviceContract
)
public:
void Add(
    ServiceContract^ serviceContract
)
member Add : 
        serviceContract:ServiceContract -> unit
public function Add(
    serviceContract : ServiceContract
)

Parameters

See Also

Reference

ServiceContractCollection Class

Microsoft.SqlServer.Management.Smo.Broker Namespace

Other Resources

Using Collections