AttributeUsageAttribute Constructor
Initializes a new instance of the AttributeUsageAttribute class with the specified list of AttributeTargets, the AllowMultiple value, and the Inherited value.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- validOn
- Type: System::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.
The definition of the DispId attribute illustrates the use of a bitwise OR operation to combine several AttributeTargets values.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.