共用方式為


FeatureConnector<TFeatureProviderType>.CreateFeatureProviders<TSubtype> 方法 (Type)

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

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

語法

'宣告
Protected Function CreateFeatureProviders(Of TSubtype As ) ( _
    type As Type _
) As IEnumerable(Of TSubtype)
protected IEnumerable<TSubtype> CreateFeatureProviders<TSubtype>(
    Type type
)
where TSubtype : 
protected:
generic<typename TSubtype>
where TSubtype : 
IEnumerable<TSubtype>^ CreateFeatureProviders(
    Type^ type
)
member CreateFeatureProviders : 
        type:Type -> IEnumerable<'TSubtype>  when 'TSubtype : 
JScript 不支援泛型型別或方法。

型別參數

  • TSubtype
    功能提供者型別的子型別。

參數

傳回值

型別:System.Collections.Generic.IEnumerable<TSubtype>
功能提供者的列舉,由子型別加以篩選。

例外狀況

例外狀況 條件
ArgumentNullException

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

備註

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

您可以指定子型別,將傳回的功能提供者限制為 FeatureProviderType 的特定子型別。

.NET Framework 安全性

請參閱

參考

FeatureConnector<TFeatureProviderType> 類別

CreateFeatureProviders 多載

Microsoft.Windows.Design.Features 命名空間

FeatureProvider

FeatureConnectorAttribute

其他資源

功能提供者和功能連接器

了解 WPF 設計工具擴充性