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>

参数

  • type
    类型:System.Type
    对其进行查询以获得功能提供程序的 Type

返回值

类型:System.Collections.Generic.IEnumerable<TFeatureProviderType>
功能提供程序的一个枚举。

异常

异常 条件
ArgumentNullException

type 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

备注

功能提供程序是通过 type 上特性的反射发现的。

.NET Framework 安全性

请参见

参考

FeatureConnector<TFeatureProviderType> 类

CreateFeatureProviders 重载

Microsoft.Windows.Design.Features 命名空间

FeatureProvider

FeatureConnectorAttribute

其他资源

功能提供程序和功能连接器

了解 WPF 设计器扩展性