Share via


AttributeUsageAttribute Class

Specifies the usage of another attribute class.

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

Syntax

[AttributeUsageAttribute]
[SerializableAttribute]
public sealed class AttributeUsageAttribute : Attribute

Remarks

This class cannot be inherited.

When you are defining your own attribute class, you can control the manner in which it is used by assigning an AttributeUsageAttribute object to your attribute class. Note that your attribute class must derive from the Attribute class, either directly or indirectly.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

AttributeUsageAttribute Members
System Namespace