Marshal.GetTypeLibGuid Methode

Definitie

Haalt de bibliotheek-id (LIBID) van een typebibliotheek op.

Overloads

Name Description
GetTypeLibGuid(ITypeLib)

Haalt de bibliotheek-id (LIBID) van een typebibliotheek op.

GetTypeLibGuid(UCOMITypeLib)
Verouderd.

Haalt de bibliotheek-id (LIBID) van een typebibliotheek op.

GetTypeLibGuid(ITypeLib)

Haalt de bibliotheek-id (LIBID) van een typebibliotheek op.

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

De typebibliotheek waarvan de LIBID moet worden opgehaald.

Retouren

De LIBID van de opgegeven typebibliotheek.

Kenmerken

Opmerkingen

GetTypeLibGuid extraheert de LIBID rechtstreeks uit een bestaande typebibliotheek. Deze actie verschilt van die van de Marshal.GetTypeLibGuidForAssembly methode, waarmee wordt berekend wat de LIBID moet zijn gebaseerd op de huidige assembly.

Zie Geëxporteerde assemblyconversie voor meer informatie over bibliotheek-id's.

Zie ook

Van toepassing op

GetTypeLibGuid(UCOMITypeLib)

Let op

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

Haalt de bibliotheek-id (LIBID) van een typebibliotheek op.

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

De typebibliotheek waarvan de LIBID moet worden opgehaald.

Retouren

De LIBID van de typebibliotheek waarnaar de pTLB parameter verwijst.

Kenmerken

Opmerkingen

GetTypeLibGuid extraheert de LIBID rechtstreeks uit een bestaande typebibliotheek. Deze actie verschilt van die van de Marshal.GetTypeLibGuidForAssembly methode, waarmee wordt berekend wat de LIBID moet zijn gebaseerd op de huidige assembly.

Zie Geëxporteerde assemblyconversie voor meer informatie over bibliotheek-id's.

Zie ook

Van toepassing op