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

属性值

指示成员的自定义属性的 A CodeAttributeDeclarationCollection

注解

此属性可用于将元数据属性添加到成员的声明。

Caution

此属性默认为 null ,应在被引用之前检查内容。

适用于

另请参阅