System.CLSCompliantAttribute

E697438

System.CLSCompliantAttribute is a .NET attribute used to indicate whether code elements comply with the Common Language Specification for cross-language interoperability.

All labels observed (2)

How this entity was disambiguated

Statements (49)

Predicate Object
instanceOf System.Attribute subclass ⓘ
attribute class ⓘ
appliesTo assemblies ⓘ
classes ⓘ
delegates ⓘ
enums ⓘ
events ⓘ
fields ⓘ
interfaces ⓘ
methods ⓘ
modules ⓘ
parameters ⓘ
properties ⓘ
return values ⓘ
structs ⓘ
assembly System.Runtime ⓘ
linked to: System.Runtime.dll

mscorlib ⓘ
linked to: mscorlib.dll
attributeUsageAllowMultiple false ⓘ
attributeUsageInherited true ⓘ
commonUsage [CLSCompliant(false)] on non-compliant APIs ⓘ
[assembly: CLSCompliant(true)] ⓘ
defaultValueSemantics false indicates not CLS-compliant ⓘ
true indicates CLS-compliant ⓘ
definedIn System.Runtime.dll in .NET Core/.NET 5+ ⓘ
linked to: System.Runtime.dll
documentation documented on Microsoft Learn ⓘ
effect causes compiler to check CLS rules ⓘ
causes compiler to emit CLS compliance warnings ⓘ
hasConstructor CLSCompliantAttribute(bool isCompliant) ⓘ
hasProperty IsCompliant ⓘ
introducedIn .NET Framework 1.0 ⓘ
linked to: .NET Framework
isCompileTimeHint true ⓘ
isMetadataAttribute true ⓘ
isRuntimeEnforced false ⓘ
language C# ⓘ
VB.NET ⓘ
linked to: Visual Basic .NET
namespace System ⓘ
platform .NET 5+ ⓘ
.NET Core ⓘ
.NET Framework ⓘ
propertyType IsCompliant: System.Boolean ⓘ
purpose indicate Common Language Specification compliance ⓘ
relatedSpecification Common Language Specification ⓘ
scopeRule applied at assembly level sets default for contained types ⓘ
applied at type or member level overrides containing scope ⓘ
supports cross-language interoperability ⓘ
usedBy C# compiler ⓘ
VB.NET compiler ⓘ
linked to: Visual Basic .NET

other CLS-aware .NET compilers ⓘ
visibilityRule primarily relevant for publicly exposed APIs ⓘ

How these facts were elicited

Referenced by (2)

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

C# attributes → exampleAttribute → System.CLSCompliantAttribute ⓘ
System.CLSCompliantAttribute → hasConstructor → CLSCompliantAttribute(bool isCompliant) ⓘ
linked to: System.CLSCompliantAttribute