共用方式為


MessageTypeMapping Constructor (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 (in microsoft.sqlserver.smo.dll)

語法

'宣告
Public Sub New ( _
    serviceContract As ServiceContract, _
    name As String _
)
public MessageTypeMapping (
    ServiceContract serviceContract,
    string name
)
public:
MessageTypeMapping (
    ServiceContract^ serviceContract, 
    String^ name
)
public MessageTypeMapping (
    ServiceContract serviceContract, 
    String name
)
public function MessageTypeMapping (
    serviceContract : ServiceContract, 
    name : String
)

參數

  • serviceContract
    A ServiceContract object that specifies the contract in which the message type is used.

備註

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