CustomAttributes Property
Collapse the table of content
Expand the table of content

CodeTypeMember.CustomAttributes Property


Gets or sets the custom attributes of the member.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public CodeAttributeDeclarationCollection CustomAttributes { get; set; }

Property Value

Type: System.CodeDom.CodeAttributeDeclarationCollection

A CodeAttributeDeclarationCollection that indicates the custom attributes of the member.

This property can be used to add metadata attributes to the declaration of the member.


This property is null by default and should be checked for content before being referenced.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft