FeatureManager.CreateFeatureProviders 方法 (Type, Type)

[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]

创建并返回一组适用于指定类型的功能提供程序。

命名空间:  Microsoft.Windows.Design.Features
程序集:  Microsoft.Windows.Design.Extensibility(在 Microsoft.Windows.Design.Extensibility.dll 中)

语法

声明
Public Function CreateFeatureProviders ( _
    featureProviderType As Type, _
    type As Type _
) As IEnumerable(Of FeatureProvider)
public IEnumerable<FeatureProvider> CreateFeatureProviders(
    Type featureProviderType,
    Type type
)
public:
IEnumerable<FeatureProvider^>^ CreateFeatureProviders(
    Type^ featureProviderType, 
    Type^ type
)
member CreateFeatureProviders : 
        featureProviderType:Type * 
        type:Type -> IEnumerable<FeatureProvider> 
public function CreateFeatureProviders(
    featureProviderType : Type, 
    type : Type
) : IEnumerable<FeatureProvider>

参数

  • featureProviderType
    类型:System.Type
    要返回的功能提供程序的类型。
  • type
    类型:System.Type
    要为其创建功能提供程序的类型。

返回值

类型:System.Collections.Generic.IEnumerable<FeatureProvider>
功能提供程序的一个枚举。如果没有任何可用的 featureProviderType 或 type 的功能提供程序,则此方法返回一个空枚举。

异常

异常 条件
ArgumentNullException

featureProviderType 或 type 为 nulla null reference (Nothing in Visual Basic)。

ArgumentException

featureProviderType 不从 FeatureProvider 派生。

.NET Framework 安全性

请参见

参考

FeatureManager 类

CreateFeatureProviders 重载

Microsoft.Windows.Design.Features 命名空间

FeatureProvider

FeatureConnector<TFeatureProviderType>

其他资源

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

了解 WPF 设计器扩展性