Freigeben über


Marshal.GetTypeLibGuid-Methode: (ITypeLib)

 

Veröffentlicht: Oktober 2016

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

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

Syntax

[SecurityCriticalAttribute]
public static Guid GetTypeLibGuid(
    ITypeLib typelib
)
public:
[SecurityCriticalAttribute]
static Guid GetTypeLibGuid(
    ITypeLib^ typelib
)
[<SecurityCriticalAttribute>]
static member GetTypeLibGuid : 
        typelib:ITypeLib -> Guid
<SecurityCriticalAttribute>
Public Shared Function GetTypeLibGuid (
    typelib As ITypeLib
) As Guid

Parameter

Rückgabewert

Type: System.Guid

Die LIBID der angegebenen Typbibliothek.

Hinweise

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

Weitere Informationen zu Bibliothek-IDs finden Sie unter Exported Assembly Conversion.

Sicherheit

SecurityCriticalAttribute

requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Versionsinformationen

.NET Framework
Verfügbar seit 2.0

Siehe auch

GetTypeLibGuidForAssembly
ITypeLib
GetTypeLibGuid Überladen
Marshal-Klasse
System.Runtime.InteropServices-Namespace

Zurück zum Anfang