MetadataProviderCallback 委托

指定一个自定义机制,以便将元数据特性提供给 FeatureManager 类。

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

语法

声明
Public Delegate Function MetadataProviderCallback ( _
    type As Type, _
    attributeType As Type _
) As IEnumerable(Of Object)
public delegate IEnumerable<Object> MetadataProviderCallback(
    Type type,
    Type attributeType
)
public delegate IEnumerable<Object^>^ MetadataProviderCallback(
    Type^ type, 
    Type^ attributeType
)
type MetadataProviderCallback = 
    delegate of 
        type:Type * 
        attributeType:Type -> IEnumerable<Object>
JScript 不支持委托。

参数

  • type
    类型:System.Type
    要获取其特性的类型。
  • attributeType
    类型:System.Type
    要枚举的特性的类型。不能为 nullnull 引用(在 Visual Basic 中为 Nothing)。

返回值

类型:System.Collections.Generic.IEnumerable<Object>
特性的枚举。

请参见

参考

Microsoft.Windows.Design.Features 命名空间