CodeTypeMember.CustomAttributes Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

System_CAPS_cautionCaution

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

.NET Framework
Available since 1.1
Return to top
Show: