Mono Class Library: System.AttributeUsageAttribute Overview | Members

System.AttributeUsageAttribute.ValidOn Property

Gets the set of values sent to the AttributeUsageAttribute constructor that indicate to which targets the custom attribute can be applied.

public AttributeTargets ValidOn { get; }

Value

One or more of the AttributeTargets values sent to the constructor, combined by a bitwise OR operation.

Remarks

This property is read-only.

Requirements

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