AttributeUsageAttribute.ValidOn Property


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

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

public AttributeTargets ValidOn { get; }

Property Value

Type: System.AttributeTargets

One or several AttributeTargets values. The default is All.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top