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 (1)
| Label | Occurrences |
|---|---|
| System.AttributeUsageAttribute canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T7896778 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: System.AttributeUsageAttribute Context triple: [C# attributes, exampleAttribute, System.AttributeUsageAttribute]
-
A.
C# attributes
C# attributes are metadata annotations in the C# programming language that allow developers to attach declarative information to code elements such as classes, methods, and properties, influencing compilation and runtime behavior.
-
B.
System.Reflection
System.Reflection is a .NET namespace that provides types and APIs for inspecting and interacting with metadata about assemblies, modules, and types at runtime.
-
C.
Common Type System
The Common Type System is a core component of the .NET architecture that defines how data types are declared, used, and managed across different .NET languages to ensure interoperability and type safety.
-
D.
C# programming language
C# is a modern, object-oriented programming language designed for building a wide range of applications on the .NET platform, known for its strong typing, rich standard library, and integration with Visual Studio.
-
E.
Microsoft Intermediate Language
Microsoft Intermediate Language is the low-level, platform-independent bytecode used by the .NET Framework’s Common Language Runtime as the compilation target for .NET languages before just-in-time compilation to native machine code.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: System.AttributeUsageAttribute Target entity description: 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.
-
A.
C# attributes
C# attributes are metadata annotations in the C# programming language that allow developers to attach declarative information to code elements such as classes, methods, and properties, influencing compilation and runtime behavior.
-
B.
System.Reflection
System.Reflection is a .NET namespace that provides types and APIs for inspecting and interacting with metadata about assemblies, modules, and types at runtime.
-
C.
Common Type System
The Common Type System is a core component of the .NET architecture that defines how data types are declared, used, and managed across different .NET languages to ensure interoperability and type safety.
-
D.
C# programming language
C# is a modern, object-oriented programming language designed for building a wide range of applications on the .NET platform, known for its strong typing, rich standard library, and integration with Visual Studio.
-
E.
Microsoft Intermediate Language
Microsoft Intermediate Language is the low-level, platform-independent bytecode used by the .NET Framework’s Common Language Runtime as the compilation target for .NET languages before just-in-time compilation to native machine code.
- F. None of above. chosen
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)] ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: System.AttributeUsageAttribute Description of subject: 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.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.