AttributeUsageAttribute Constructor
Initializes a new instance of the AttributeUsageAttribute class with a specified list of AttributeTargets values.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
public AttributeUsageAttribute (
AttributeTargetsvalidOn
)
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 by using a bitwise OR operation to get the desired combination of valid program elements.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.
See Also
Reference
AttributeUsageAttribute Class
AttributeUsageAttribute Members
System Namespace