ServiceBroker.ServiceContracts 屬性
Represents a collection of ServiceContract objects. Each ServiceContract object represents a service contract defined on the instance of Service Broker.
命名空間: Microsoft.SqlServer.Management.Smo.Broker
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, _
GetType(ServiceContract))> _
Public ReadOnly Property ServiceContracts As ServiceContractCollection
Get
'用途
Dim instance As ServiceBroker
Dim value As ServiceContractCollection
value = instance.ServiceContracts
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(ServiceContract))]
public ServiceContractCollection ServiceContracts { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny,
typeof(ServiceContract))]
public:
property ServiceContractCollection^ ServiceContracts {
ServiceContractCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(ServiceContract))>]
member ServiceContracts : ServiceContractCollection
function get ServiceContracts () : ServiceContractCollection
屬性值
型別:Microsoft.SqlServer.Management.Smo.Broker.ServiceContractCollection
A ServiceContractCollection object that represents all the service contracts defined on the instance of Service Broker.
範例
Readme_ServiceBrokerConfiguration
請參閱
參考
Microsoft.SqlServer.Management.Smo.Broker 命名空間