Marshal.GetTypeFromCLSID(Guid) 方法

定义

返回与指定的类标识符 (CLSID) 关联的类型。

public:
 static Type ^ GetTypeFromCLSID(Guid clsid);
public static Type GetTypeFromCLSID (Guid clsid);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static Type? GetTypeFromCLSID (Guid clsid);
static member GetTypeFromCLSID : Guid -> Type
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member GetTypeFromCLSID : Guid -> Type
Public Shared Function GetTypeFromCLSID (clsid As Guid) As Type

参数

clsid
Guid

要返回的类型的 CLSID。

返回

System.__ComObject,无论 CLSID 是否有效。

属性

适用于