Share via


ServiceContract Constructor (ServiceBroker, String)

Initializes a new instance of the ServiceContract class on the specified instance of Service Broker and with the specified name.

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

Syntax

'Declaration
Public Sub New ( _
    serviceBroker As ServiceBroker, _
    name As String _
)
'Usage
Dim serviceBroker As ServiceBroker
Dim name As String

Dim instance As New ServiceContract(serviceBroker, _
    name)
public ServiceContract(
    ServiceBroker serviceBroker,
    string name
)
public:
ServiceContract(
    ServiceBroker^ serviceBroker, 
    String^ name
)
new : 
        serviceBroker:ServiceBroker * 
        name:string -> ServiceContract
public function ServiceContract(
    serviceBroker : ServiceBroker, 
    name : String
)

Parameters