共用方式為


PolicyDrivenFeatureConnector<TFeatureProviderType> 類別

根據項目原則建立功能提供者。

繼承階層架構

System.Object
  Microsoft.Windows.Design.Features.FeatureConnector<TFeatureProviderType>
    Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector<TFeatureProviderType>

命名空間:  Microsoft.Windows.Design.Policies
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public MustInherit Class PolicyDrivenFeatureConnector(Of TFeatureProviderType As FeatureProvider) _
    Inherits FeatureConnector(Of TFeatureProviderType)
public abstract class PolicyDrivenFeatureConnector<TFeatureProviderType> : FeatureConnector<TFeatureProviderType>
where TFeatureProviderType : FeatureProvider
generic<typename TFeatureProviderType>
where TFeatureProviderType : FeatureProvider
public ref class PolicyDrivenFeatureConnector abstract : public FeatureConnector<TFeatureProviderType>
[<AbstractClass>]
type PolicyDrivenFeatureConnector<'TFeatureProviderType when 'TFeatureProviderType : FeatureProvider> =  
    class
        inherit FeatureConnector<'TFeatureProviderType>
    end
JScript 不支援泛型型別或方法。

型別參數

  • TFeatureProviderType
    功能提供者的型別。

PolicyDrivenFeatureConnector<TFeatureProviderType> 型別會公開下列成員。

建構函式

  名稱 說明
受保護的方法 PolicyDrivenFeatureConnector<TFeatureProviderType> 初始化 PolicyDrivenFeatureConnector<TFeatureProviderType> 類別的新執行個體。

回頁首

屬性

  名稱 說明
受保護的屬性 Context 取得功能連接器的編輯內容。 (繼承自 FeatureConnector<TFeatureProviderType>)。
受保護的屬性 FeatureProviders 會取得目前所有功能提供者的列舉。
受保護的屬性 Manager 取得功能連接器的 FeatureManager。 (繼承自 FeatureConnector<TFeatureProviderType>)。

回頁首

方法

  名稱 說明
受保護的方法 CreateFeatureProviders(Type) 會根據所提供的型別,建立與功能連接器相關聯之功能提供者的新清單。 (繼承自 FeatureConnector<TFeatureProviderType>)。
公用方法 Dispose() 釋放 FeatureConnector<TFeatureProviderType> 所使用的所有資源。 (繼承自 FeatureConnector<TFeatureProviderType>)。
受保護的方法 Dispose(Boolean) 釋放 PolicyDrivenFeatureConnector<TFeatureProviderType> 使用的 Unmanaged 資源,並選擇性釋放 Managed 資源。 (覆寫 FeatureConnector<TFeatureProviderType>.Dispose(Boolean)。)
公用方法 Equals 判斷指定的 Object 和目前的 Object 是否相等。 (繼承自 Object)。
受保護的方法 FeatureProvidersAdded 當變更原則並將功能提供者加入至使用中的功能提供者集合時,由原則功能連接器自動呼叫。
受保護的方法 FeatureProvidersRemoved 當變更原則並從使用中的功能提供者集合移除功能提供者時,由原則功能連接器自動呼叫。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 FeatureConnector<TFeatureProviderType>)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
受保護的方法 IsValidProvider 測試功能提供者是否有效以供叫用。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。
受保護的方法 UpdateFeatureProviders 根據 ItemPolicy 重新整理功能提供者。

回頁首

備註

PolicyDrivenFeatureConnector<TFeatureProviderType> 是功能連接器,會根據 ItemPolicy 執行個體建立功能提供者。 PolicyDrivenFeatureConnector<TFeatureProviderType> 會快取和維護一組符合目前原則的功能提供者,並在這些功能提供者變更時通知您。

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

Microsoft.Windows.Design.Policies 命名空間