Upraviť

Zdieľať cez


Marshal.GetTypeLibGuid Method

Definition

Retrieves the library identifier (LIBID) of a type library.

Overloads

GetTypeLibGuid(ITypeLib)

Retrieves the library identifier (LIBID) of a type library.

GetTypeLibGuid(UCOMITypeLib)
Obsolete.

Retrieves the library identifier (LIBID) of a type library.

GetTypeLibGuid(ITypeLib)

Retrieves the library identifier (LIBID) of a type library.

public:
 static Guid GetTypeLibGuid(System::Runtime::InteropServices::ComTypes::ITypeLib ^ typelib);
public static Guid GetTypeLibGuid (System.Runtime.InteropServices.ComTypes.ITypeLib typelib);
[System.Security.SecurityCritical]
public static Guid GetTypeLibGuid (System.Runtime.InteropServices.ComTypes.ITypeLib typelib);
static member GetTypeLibGuid : System.Runtime.InteropServices.ComTypes.ITypeLib -> Guid
[<System.Security.SecurityCritical>]
static member GetTypeLibGuid : System.Runtime.InteropServices.ComTypes.ITypeLib -> Guid
Public Shared Function GetTypeLibGuid (typelib As ITypeLib) As Guid

Parameters

typelib
ITypeLib

The type library whose LIBID is to be retrieved.

Returns

The LIBID of the specified type library.

Attributes

Remarks

GetTypeLibGuid extracts the LIBID directly from an existing type library. This action differs from that of the Marshal.GetTypeLibGuidForAssembly method, which calculates what the LIBID should be based on the current assembly.

For more information about library identifiers, see Exported Assembly Conversion.

See also

Applies to

GetTypeLibGuid(UCOMITypeLib)

Caution

Use System.Runtime.InteropServices.Marshal.GetTypeLibGuid(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.

Retrieves the library identifier (LIBID) of a type library.

public:
 static Guid GetTypeLibGuid(System::Runtime::InteropServices::UCOMITypeLib ^ pTLB);
public static Guid GetTypeLibGuid (System.Runtime.InteropServices.UCOMITypeLib pTLB);
[System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibGuid(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)]
public static Guid GetTypeLibGuid (System.Runtime.InteropServices.UCOMITypeLib pTLB);
[System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibGuid(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)]
[System.Security.SecurityCritical]
public static Guid GetTypeLibGuid (System.Runtime.InteropServices.UCOMITypeLib pTLB);
static member GetTypeLibGuid : System.Runtime.InteropServices.UCOMITypeLib -> Guid
[<System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibGuid(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)>]
static member GetTypeLibGuid : System.Runtime.InteropServices.UCOMITypeLib -> Guid
[<System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibGuid(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)>]
[<System.Security.SecurityCritical>]
static member GetTypeLibGuid : System.Runtime.InteropServices.UCOMITypeLib -> Guid
Public Shared Function GetTypeLibGuid (pTLB As UCOMITypeLib) As Guid

Parameters

pTLB
UCOMITypeLib

The type library whose LIBID is to be retrieved.

Returns

The LIBID of the type library that the pTLB parameter points to.

Attributes

Remarks

GetTypeLibGuid extracts the LIBID directly from an existing type library. This action differs from that of the Marshal.GetTypeLibGuidForAssembly method, which calculates what the LIBID should be based on the current assembly.

For more information about library identifiers, see Exported Assembly Conversion.

See also

Applies to