ValidOn Property
Collapse the table of content
Expand the table of content

AttributeUsageAttribute.ValidOn Property

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

[Visual Basic]
Public ReadOnly Property ValidOn As AttributeTargets
public AttributeTargets ValidOn {get;}
public: __property AttributeTargets get_ValidOn();
public function get ValidOn() : AttributeTargets;

Property Value

One or several AttributeTargets values. The default is All.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

AttributeUsageAttribute Class | AttributeUsageAttribute Members | System Namespace | AttributeTargets

© 2015 Microsoft