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
功能提供者型別的子型別。
參數
- type
型別:System.Type
要查詢功能提供者的 Type。
傳回值
型別:System.Collections.Generic.IEnumerable<TSubtype>
功能提供者的列舉,由子型別加以篩選。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | type 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
備註
透過 type 之屬性的反映 (Reflection),會發現功能提供者。
您可以指定子型別,將傳回的功能提供者限制為 FeatureProviderType 的特定子型別。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
FeatureConnector<TFeatureProviderType> 類別
Microsoft.Windows.Design.Features 命名空間