Freigeben über


Marshal.GetTypeLibGuid Methode

Definition

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

Überlädt

Name Beschreibung
GetTypeLibGuid(ITypeLib)

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

GetTypeLibGuid(UCOMITypeLib)
Veraltet.

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

GetTypeLibGuid(ITypeLib)

Ruft die Bibliotheks-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 Methode, die berechnet, welche LIBID auf der aktuellen Assembly basieren soll.

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 Bibliotheks-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 verweist.

Attribute

Hinweise

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

Weitere Informationen

Gilt für: