共用方式為


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 設計工具擴充性架構

編輯模型架構