基于提供的类型创建一个与功能连接器相关联的功能提供程序的新列表。
命名空间:  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 上特性的反射发现的。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
FeatureConnector<TFeatureProviderType> 类
Microsoft.Windows.Design.Features 命名空间