指定將中繼資料屬性提供給 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>
屬性 (Attribute) 的列舉型別。