會根據所提供的型別,建立與功能連接器相關聯之功能提供者的新清單。
命名空間: 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>
參數
- type
型別:System.Type
要查詢功能提供者的 Type。
傳回值
型別:System.Collections.Generic.IEnumerable<TFeatureProviderType>
功能提供者的列舉型別。
例外狀況
| 例外狀況 | 條件 |
|---|---|
| ArgumentNullException | type 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
備註
透過 type 之屬性的反映 (Reflection),會發現功能提供者。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
FeatureConnector<TFeatureProviderType> 類別
Microsoft.Windows.Design.Features 命名空間