Table of Contents

Class CLSCompliantAttribute

Namespace
System
Assembly
mscorlib.dll

Indicates whether a program element is compliant with the Common Language Specification (CLS). This class cannot be inherited.

[AttributeUsage(AttributeTargets.All)]
public sealed class CLSCompliantAttribute : Attribute
Inheritance
CLSCompliantAttribute
Inherited Members
Extension Methods

Constructors

CLSCompliantAttribute(bool)

Initializes an instance of the CLSCompliantAttribute class with a Boolean value indicating whether the indicated program element is CLS-compliant.

public CLSCompliantAttribute(bool isCompliant)

Parameters

isCompliant bool

true if CLS-compliant; otherwise, false.

Properties

IsCompliant

GGets the Boolean value indicating whether the indicated program element is CLS-compliant.

public bool IsCompliant { get; }

Property Value

bool

true if the program element is CLS-compliant; otherwise, false.