Marshal.GetTypeFromCLSID Method (Guid)


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

Returns the type associated with the specified class identifier (CLSID).

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public static Type GetTypeFromCLSID(
	Guid clsid


Type: System.Guid

The CLSID of the type to return.

Return Value

Type: System.Type

System.__ComObject regardless of whether the CLSID is valid.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top