System.AttributeUsageAttribute.ValidOn Property

Gets a set of values identifying which program elements that the indicated attribute can be applied to.

Syntax

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, 4.0.0.0