Name
CLSCompliantAttribute
Synopsis
This attribute indicates that a program element is compliant with
the CLS. If you use non-CLS
compliant classes (such as UInt32
) in a
class marked as compliant, the compiler generates a compliance
warning.
By default, types without this attribute are not CLS-compliant unless
they are contained in a CLS-compliant type or assembly. You can
specifically mark non-CLS compliant members inside a CLS-compliant
type using <CLSCompliant(False)>
.
Public NotInheritable Class CLSCompliantAttribute : Inherits Attribute ' Public Constructors Public Sub New( ByVal isCompliant As Boolean) ' Public Instance Properties Public ReadOnly Property IsCompliant As Boolean End Class
Hierarchy
Object→Attribute→ CLSCompliantAttribute
Valid On
All
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.