ModelItem.GetAttributes 方法 (Type)

获取在此项上声明的请求类型的特性。

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

语法

声明
Public MustOverride Function GetAttributes ( _
    attributeType As Type _
) As IEnumerable(Of Object)
public abstract IEnumerable<Object> GetAttributes(
    Type attributeType
)
public:
virtual IEnumerable<Object^>^ GetAttributes(
    Type^ attributeType
) abstract
abstract GetAttributes : 
        attributeType:Type -> IEnumerable<Object> 
public abstract function GetAttributes(
    attributeType : Type
) : IEnumerable<Object>

参数

  • attributeType
    类型:System.Type
    请求的类型。

返回值

类型:System.Collections.Generic.IEnumerable<Object>
在此项上声明的请求类型的特性的集合。

.NET Framework 安全性

请参见

参考

ModelItem 类

GetAttributes 重载

Microsoft.Windows.Design.Model 命名空间

其他资源

WPF 设计器扩展性体系结构

编辑模型体系结构