共用方式為


ServiceContractExtender 類別

Exposes Service Broker contract methods and properties in addition to the methods and properties of the ServiceContract object.

此 API 不符合 CLS 標準。 符合 CLS 標準的替代項目是 。

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcObjectExtender< (Of < ( <'ServiceContract> ) > ) >
    Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectExtender< (Of < ( <'ServiceContract> ) > ) >
      Microsoft.SqlServer.Management.Smo.Broker..::..ServiceContractExtender

命名空間:  Microsoft.SqlServer.Management.Smo.Broker
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<CLSCompliantAttribute(False)> _
Public Class ServiceContractExtender _
    Inherits SmoObjectExtender(Of ServiceContract) _
    Implements ISfcValidate
'用途
Dim instance As ServiceContractExtender
[CLSCompliantAttribute(false)]
public class ServiceContractExtender : SmoObjectExtender<ServiceContract>, 
    ISfcValidate
[CLSCompliantAttribute(false)]
public ref class ServiceContractExtender : public SmoObjectExtender<ServiceContract^>, 
    ISfcValidate
[<CLSCompliantAttribute(false)>]
type ServiceContractExtender =  
    class
        inherit SmoObjectExtender<ServiceContract>
        interface ISfcValidate
    end
public class ServiceContractExtender extends SmoObjectExtender<ServiceContract> implements ISfcValidate

ServiceContractExtender 型別公開下列成員。

建構函式

  名稱 說明
公用方法 ServiceContractExtender() () () () Initializes a new instance of the ServiceContractExtender class.
公用方法 ServiceContractExtender(ServiceContract) Initializes a new instance of the ServiceContractExtender class and associates it with an instance of the ServiceContract class.

上層

屬性

  名稱 說明
公用屬性 MessageTypeMappings Gets the collection of MessageTypeMapping which is associated with the contract Service Broker contract belonging to ServiceContractExtender object.
公用屬性 Name Gets or sets the name of the Service Broker contract associated with the ServiceContractExtender object.
受保護的屬性 Parent 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
受保護的方法 GetParentSfcPropertySet Returns an instance of the parent objects property set. (繼承自 SmoObjectExtender< (Of < ( <'T> ) > ) >。)
公用方法 GetPropertySet 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
受保護的方法 OnPropertyChanged Raises the PropertyChanged event when it has any subscriber. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)
受保護的方法 OnPropertyMetadataChanged 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)
受保護的方法 parent_PropertyChanged 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)
受保護的方法 parent_PropertyMetadataChanged Indicates the parent object in the PropertyMetadata. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)
受保護的方法 RegisterParentProperty Registers the property of the parent that has not been included in properties collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)
受保護的方法 RegisterProperty(PropertyInfo) Registers an additional reflected property. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)
受保護的方法 RegisterProperty(PropertyInfo, String) 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)
公用方法 ToString (繼承自 Object。)
公用方法 Validate Validates the specified method with specified parameters for the Service Contract.

上層

事件

  名稱 說明
公用事件 PropertyChanged 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)
公用事件 PropertyMetadataChanged 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcObjectExtender< (Of < ( <'TSfcInstance> ) > ) >。)

上層

備註

Thread Safety

此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。