Share via


CodeTypeMember.CustomAttributes 屬性

定義

取得或設定成員的自訂屬性。

public:
 property System::CodeDom::CodeAttributeDeclarationCollection ^ CustomAttributes { System::CodeDom::CodeAttributeDeclarationCollection ^ get(); void set(System::CodeDom::CodeAttributeDeclarationCollection ^ value); };
public System.CodeDom.CodeAttributeDeclarationCollection CustomAttributes { get; set; }
member this.CustomAttributes : System.CodeDom.CodeAttributeDeclarationCollection with get, set
Public Property CustomAttributes As CodeAttributeDeclarationCollection

屬性值

CodeAttributeDeclarationCollection,表示成員的自訂屬性。

備註

這個屬性可用來將元數據屬性新增至成員的宣告。

警告

此屬性預設為 null ,而且應該在參考之前檢查內容。

適用於

另請參閱