Share via


ValidOn Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public ReadOnly Property ValidOn As AttributeTargets
public AttributeTargets ValidOn { get; }
public:
property AttributeTargets ValidOn {
    AttributeTargets get ();
}
member ValidOn : AttributeTargets with get
function get ValidOn () : AttributeTargets

Property Value

Type: System. . :: . .AttributeTargets
One or several AttributeTargets values. The default is All.

.NET Framework Security

See Also

Reference

AttributeUsageAttribute Class

System Namespace