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 Constructor

Initializes a new instance of the AttributeUsageAttribute class with the specified list of AttributeTargets, the AllowMultiple value, and the Inherited value.

[Visual Basic]
Public Sub New( _
   ByVal validOn As AttributeTargets _
public AttributeUsageAttribute(
   AttributeTargets validOn
public: AttributeUsageAttribute(
   AttributeTargets validOn
public function AttributeUsageAttribute(
   validOn : AttributeTargets


The set of values combined using a bitwise OR operation to indicate which program elements are valid.


You can combine several AttributeTargets values using a bitwise OR operation to get the desired combination of valid program elements.

For default property values, see the ValidOn, AllowMultiple, and Inherited properties.


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