Mono Class Library: System.AttributeUsageAttribute Overview | Members

System.AttributeUsageAttribute Constructor

Constructs and initializes a new instance of the AttributeUsageAttribute class.

public AttributeUsageAttribute (AttributeTargets validOn)

Parameters

validOn
The set of application elements to which the attribute will be applied. When indicating multiple application elements, validOn is a bitwise OR combination of AttributeTargets enumeration values.

Remarks

The new instance will be constructed with the specified value of validOn and the properties AttributeUsageAttribute.AllowMultiple and AttributeUsageAttribute.Inherited set to their default values (false and true respectively).

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0