MessageTypeMapping 建構函式 (ServiceContract, String)
Initializes a new instance of the MessageTypeMapping class for the specified contract and with the specified name.
命名空間: Microsoft.SqlServer.Management.Smo.Broker
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub New ( _
serviceContract As ServiceContract, _
name As String _
)
'用途
Dim serviceContract As ServiceContract
Dim name As String
Dim instance As New MessageTypeMapping(serviceContract, _
name)
public MessageTypeMapping(
ServiceContract serviceContract,
string name
)
public:
MessageTypeMapping(
ServiceContract^ serviceContract,
String^ name
)
new :
serviceContract:ServiceContract *
name:string -> MessageTypeMapping
public function MessageTypeMapping(
serviceContract : ServiceContract,
name : String
)
參數
- serviceContract
型別:Microsoft.SqlServer.Management.Smo.Broker.ServiceContract
A ServiceContract object that specifies the contract in which the message type is used.
- name
型別:System.String
A String value that specifies the name of the MessageType object.
範例
Readme_ServiceBrokerConfiguration
請參閱
參考
Microsoft.SqlServer.Management.Smo.Broker 命名空間