Class CLSCompliantAttribute
Indicates whether a program element is compliant with the Common Language Specification (CLS). This class cannot be inherited.
Inherited Members
Namespace: System
Assembly: mscorlib.dll
Syntax
[AttributeUsage(AttributeTargets.All)]
public sealed class CLSCompliantAttribute : Attribute
Constructors
| Improve this Doc View SourceCLSCompliantAttribute(Boolean)
Initializes an instance of the CLSCompliantAttribute class with a Boolean value indicating whether the indicated program element is CLS-compliant.
Declaration
public CLSCompliantAttribute(bool isCompliant)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isCompliant | true if CLS-compliant; otherwise, false. |
Properties
| Improve this Doc View SourceIsCompliant
GGets the Boolean value indicating whether the indicated program element is CLS-compliant.
Declaration
public bool IsCompliant { get; }
Property Value
Type | Description |
---|---|
Boolean | true if the program element is CLS-compliant; otherwise, false. |