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 _
)
[C#]
public AttributeUsageAttribute(
   AttributeTargets validOn
);
[C++]
public: AttributeUsageAttribute(
   AttributeTargets validOn
);
[JScript]
public function AttributeUsageAttribute(
   validOn : AttributeTargets
);

Parameters

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

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft