Share via


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 (
         AttributeTargets validOn
)

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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

AttributeUsageAttribute Class
AttributeUsageAttribute Members
System Namespace