共用方式為


FeatureConnector<TFeatureProviderType>.CreateFeatureProviders 方法 (Type)

會根據所提供的型別,建立與功能連接器相關聯之功能提供者的新清單。

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

語法

'宣告
Protected Function CreateFeatureProviders ( _
    type As Type _
) As IEnumerable(Of TFeatureProviderType)
protected IEnumerable<TFeatureProviderType> CreateFeatureProviders(
    Type type
)
protected:
IEnumerable<TFeatureProviderType>^ CreateFeatureProviders(
    Type^ type
)
member CreateFeatureProviders : 
        type:Type -> IEnumerable<'TFeatureProviderType> 
protected function CreateFeatureProviders(
    type : Type
) : IEnumerable<TFeatureProviderType>

參數

傳回值

型別:System.Collections.Generic.IEnumerable<TFeatureProviderType>
功能提供者的列舉型別。

例外狀況

例外狀況 條件
ArgumentNullException

type 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

備註

透過 type 之屬性的反映 (Reflection),會發現功能提供者。

.NET Framework 安全性

請參閱

參考

FeatureConnector<TFeatureProviderType> 類別

CreateFeatureProviders 多載

Microsoft.Windows.Design.Features 命名空間

FeatureProvider

FeatureConnectorAttribute

其他資源

功能提供者和功能連接器

了解 WPF 設計工具擴充性