System.AttributeUsageAttribute
E697437
System.AttributeUsageAttribute is a .NET attribute class used to specify how and where other custom attributes can be applied in code, such as their valid targets and whether they can be used multiple times.
Statements (48)
| Predicate | Object |
|---|---|
| instanceOf |
System.Attribute
ⓘ
attribute class ⓘ class ⓘ |
| affectsRuntimeBehaviorDirectly | false ⓘ |
| appliesTo | attribute classes ⓘ |
| assembly |
System.Runtime
NERFINISHED
ⓘ
mscorlib NERFINISHED ⓘ |
| baseType | System.Attribute NERFINISHED ⓘ |
| canTarget |
System.AttributeTargets.Assembly
NERFINISHED
ⓘ
System.AttributeTargets.Class NERFINISHED ⓘ System.AttributeTargets.Constructor NERFINISHED ⓘ System.AttributeTargets.Delegate ⓘ System.AttributeTargets.Enum NERFINISHED ⓘ System.AttributeTargets.Event ⓘ System.AttributeTargets.Field NERFINISHED ⓘ System.AttributeTargets.GenericParameter ⓘ System.AttributeTargets.Interface NERFINISHED ⓘ System.AttributeTargets.Method NERFINISHED ⓘ System.AttributeTargets.Module NERFINISHED ⓘ System.AttributeTargets.Parameter ⓘ System.AttributeTargets.Property NERFINISHED ⓘ System.AttributeTargets.ReturnValue NERFINISHED ⓘ System.AttributeTargets.Struct ⓘ |
| defaultValue(AllowMultiple) | false ⓘ |
| defaultValue(Inherited) | true ⓘ |
| definedIn |
System.Runtime.dll
NERFINISHED
ⓘ
mscorlib.dll NERFINISHED ⓘ |
| hasConstructor | AttributeUsageAttribute(System.AttributeTargets validOn) ⓘ |
| hasProperty |
AllowMultiple
ⓘ
Inherited ⓘ ValidOn ⓘ |
| introducedIn | .NET Framework 1.0 NERFINISHED ⓘ |
| isCLSCompliant | true ⓘ |
| isMetadataAttribute | true ⓘ |
| isPublic | true ⓘ |
| isSealed | true ⓘ |
| isSerializable | true ⓘ |
| languageCSharpName | AttributeUsageAttribute NERFINISHED ⓘ |
| namespace | System NERFINISHED ⓘ |
| propertyType(AllowMultiple) | System.Boolean ⓘ |
| propertyType(Inherited) | System.Boolean NERFINISHED ⓘ |
| propertyType(ValidOn) | System.AttributeTargets NERFINISHED ⓘ |
| purpose |
control valid program elements that an attribute can target
ⓘ
control whether an attribute can be applied multiple times ⓘ control whether an attribute is inherited by derived classes ⓘ specify how and where a custom attribute can be applied ⓘ |
| usageExample |
[AttributeUsage(AttributeTargets.Class)]
ⓘ
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = true)] ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.