Initializes a new instance of the MessageTypeMapping class for the specified contract and with the specified name and message source.
命名空間: Microsoft.SqlServer.Management.Smo.Broker
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
語法
'宣告
Public Sub New ( _
servicecontract As ServiceContract, _
messageName As String, _
messageSource As MessageSource _
)
public MessageTypeMapping (
ServiceContract servicecontract,
string messageName,
MessageSource messageSource
)
public:
MessageTypeMapping (
ServiceContract^ servicecontract,
String^ messageName,
MessageSource messageSource
)
public MessageTypeMapping (
ServiceContract servicecontract,
String messageName,
MessageSource messageSource
)
public function MessageTypeMapping (
servicecontract : ServiceContract,
messageName : String,
messageSource : MessageSource
)
參數
- servicecontract
- messageName
A String value that specifies the name of the MessageType object.
- messageSource
A MessageSource object value that specifies which dialog sent the message type.
備註
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
範例
Readme_ServiceBrokerConfiguration
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
MessageTypeMapping Class
MessageTypeMapping Members
Microsoft.SqlServer.Management.Smo.Broker Namespace
其他資源
Service Broker 簡介
Managing Service Broker
Service Broker Programming