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.

All labels observed (2)

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf System.Attribute ⓘ
attribute class ⓘ
class ⓘ
affectsRuntimeBehaviorDirectly false ⓘ
appliesTo attribute classes ⓘ
assembly System.Runtime ⓘ
mscorlib ⓘ
linked to: mscorlib.dll
baseType System.Attribute ⓘ
canTarget System.AttributeTargets.Assembly ⓘ
System.AttributeTargets.Class ⓘ
System.AttributeTargets.Constructor ⓘ
System.AttributeTargets.Delegate ⓘ
System.AttributeTargets.Enum ⓘ
System.AttributeTargets.Event ⓘ
System.AttributeTargets.Field ⓘ
System.AttributeTargets.GenericParameter ⓘ
System.AttributeTargets.Interface ⓘ
System.AttributeTargets.Method ⓘ
System.AttributeTargets.Module ⓘ
System.AttributeTargets.Parameter ⓘ
System.AttributeTargets.Property ⓘ
System.AttributeTargets.ReturnValue ⓘ
System.AttributeTargets.Struct ⓘ
defaultValue(AllowMultiple) false ⓘ
defaultValue(Inherited) true ⓘ
definedIn System.Runtime.dll ⓘ
mscorlib.dll ⓘ
hasConstructor AttributeUsageAttribute(System.AttributeTargets validOn) ⓘ
hasProperty AllowMultiple ⓘ
Inherited ⓘ
ValidOn ⓘ
introducedIn .NET Framework 1.0 ⓘ
linked to: .NET Framework
isCLSCompliant true ⓘ
isMetadataAttribute true ⓘ
isPublic true ⓘ
isSealed true ⓘ
isSerializable true ⓘ
languageCSharpName AttributeUsageAttribute ⓘ
namespace System ⓘ
propertyType(AllowMultiple) System.Boolean ⓘ
propertyType(Inherited) System.Boolean ⓘ
propertyType(ValidOn) System.AttributeTargets ⓘ
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)] ⓘ

How these facts were elicited

Referenced by (3)

Full triples — surface form annotated when it differs from this entity's canonical label.

C# attributes → exampleAttribute → System.AttributeUsageAttribute ⓘ
System.AttributeUsageAttribute → languageCSharpName → AttributeUsageAttribute ⓘ
linked to: System.AttributeUsageAttribute
System.Attribute → usedWith → System.AttributeUsageAttribute ⓘ