System.Runtime.InteropServices.Marshal.GetTypeLibGuid Method

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

Syntax

[System.Obsolete]
public static Guid GetTypeLibGuid (UCOMITypeLib pTLB)

Parameters

pTLB
The type library whose LIBID is to be retrieved.

Returns

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

Remarks

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

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

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0