Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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