ComClassAttribute.ClassID Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a class ID used to uniquely identify a class.

Namespace:   Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public string ClassID { get; }

Property Value

Type: System.String

Read-only. A string that can be used by the compiler to uniquely identify the class when a COM object is created.

The constructor sets this property when the ComClassAttribute is applied to a class.

.NET Framework
Available since 1.1
Return to top