SfcObjectExtender<TSfcInstance> 類別

定義

作為需要擴充附加屬性的物件的基底類別,允許將這些新屬性加入 PropertySet,因此可用 PropertyProvider 存取。此外,它有助於建立擴展屬性與原始屬性之間的依賴關係

public class SfcObjectExtender<TSfcInstance> : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcPropertyProvider, System.ComponentModel.INotifyPropertyChanged where TSfcInstance : ISfcPropertyProvider, new()
type SfcObjectExtender<'SfcInstance (requires 'SfcInstance :> ISfcPropertyProvider and 'SfcInstance : (new : unit -> 'SfcInstance))> = class
    interface ISfcPropertyProvider
    interface ISfcNotifyPropertyMetadataChanged
    interface INotifyPropertyChanged
Public Class SfcObjectExtender(Of TSfcInstance)
Implements INotifyPropertyChanged, ISfcPropertyProvider

類型參數

TSfcInstance
繼承
SfcObjectExtender<TSfcInstance>
衍生
實作

建構函式

名稱 Description
SfcObjectExtender<TSfcInstance>()

預設的 CTOR 用於程式碼產生情境

SfcObjectExtender<TSfcInstance>(TSfcInstance)

克托爾

屬性

名稱 Description
Parent

父物件

方法

名稱 Description
GetParentSfcPropertySet()

回傳父屬性集合的實例

GetPropertySet()

回傳屬性集合

OnPropertyChanged(String)

當它有任何訂閱者時,觸發 PropertyChanged 事件

OnPropertyMetadataChanged(String)

當它有任何訂閱者時,觸發 PropertyMetadataChanged 事件

parent_PropertyChanged(Object, PropertyChangedEventArgs)

作為需要擴充附加屬性的物件的基底類別,允許將這些新屬性加入 PropertySet,因此可用 PropertyProvider 存取。此外,它有助於建立擴展屬性與原始屬性之間的依賴關係

parent_PropertyMetadataChanged(Object, SfcPropertyMetadataChangedEventArgs)

作為需要擴充附加屬性的物件的基底類別,允許將這些新屬性加入 PropertySet,因此可用 PropertyProvider 存取。此外,它有助於建立擴展屬性與原始屬性之間的依賴關係

RegisterParentProperty(PropertyInfo)

登錄父目錄的屬性,但尚未包含在屬性集合中(例如SMO或集合中的「Name」)

RegisterProperty(PropertyInfo, String)

註冊一個額外的反射屬性,依賴於父物件的屬性

RegisterProperty(PropertyInfo)

註冊一個額外的反射屬性

事件

名稱 Description
PropertyChanged

作為需要擴充附加屬性的物件的基底類別,允許將這些新屬性加入 PropertySet,因此可用 PropertyProvider 存取。此外,它有助於建立擴展屬性與原始屬性之間的依賴關係

PropertyMetadataChanged

作為需要擴充附加屬性的物件的基底類別,允許將這些新屬性加入 PropertySet,因此可用 PropertyProvider 存取。此外,它有助於建立擴展屬性與原始屬性之間的依賴關係

適用於