Marshal.GetTypeLibGuid Methode

Definition

Ruft die Bibliothek-ID (LIBID) einer Typbibliothek ab.

Überlädt

GetTypeLibGuid(ITypeLib)

Ruft die Bibliothek-ID (LIBID) einer Typbibliothek ab.

GetTypeLibGuid(UCOMITypeLib)
Veraltet.

Ruft die Bibliothek-ID (LIBID) einer Typbibliothek ab.

GetTypeLibGuid(ITypeLib)

Ruft die Bibliothek-ID (LIBID) einer Typbibliothek ab.

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

Parameter

typelib
ITypeLib

Die Typbibliothek, deren LIBID abgerufen werden soll.

Gibt zurück

Die LIBID der angegebenen Typbibliothek.

Attribute

Hinweise

GetTypeLibGuid extrahiert die LIBID direkt aus einer vorhandenen Typbibliothek. Diese Aktion unterscheidet sich von der Marshal.GetTypeLibGuidForAssembly der -Methode, die berechnet, was die LIBID basierend auf der aktuellen Assembly sein soll.

Weitere Informationen zu Bibliotheksbezeichnern finden Sie unter Exportierte Assemblykonvertierung.

Weitere Informationen

Gilt für:

GetTypeLibGuid(UCOMITypeLib)

Achtung

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

Ruft die Bibliothek-ID (LIBID) einer Typbibliothek ab.

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

Parameter

pTLB
UCOMITypeLib

Die Typbibliothek, deren LIBID abgerufen werden soll.

Gibt zurück

Die LIBID der Typbibliothek, auf die der pTLB-Parameter zeigt.

Attribute

Hinweise

GetTypeLibGuid extrahiert die LIBID direkt aus einer vorhandenen Typbibliothek. Diese Aktion unterscheidet sich von der Marshal.GetTypeLibGuidForAssembly der -Methode, die berechnet, was die LIBID basierend auf der aktuellen Assembly sein soll.

Weitere Informationen zu Bibliotheksbezeichnern finden Sie unter Exportierte Assemblykonvertierung.

Weitere Informationen

Gilt für: