Marshal.GetTypeLibGuid Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Hämtar biblioteksidentifieraren (LIBID) för ett typbibliotek.
Överlagringar
| Name | Description |
|---|---|
| GetTypeLibGuid(ITypeLib) |
Hämtar biblioteksidentifieraren (LIBID) för ett typbibliotek. |
| GetTypeLibGuid(UCOMITypeLib) |
Föråldrad.
Hämtar biblioteksidentifieraren (LIBID) för ett typbibliotek. |
GetTypeLibGuid(ITypeLib)
Hämtar biblioteksidentifieraren (LIBID) för ett typbibliotek.
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
Parametrar
- typelib
- ITypeLib
Typbiblioteket vars LIBID ska hämtas.
Returer
LIBID för det angivna typbiblioteket.
- Attribut
Kommentarer
GetTypeLibGuid extraherar LIBID direkt från ett befintligt typbibliotek. Den här åtgärden skiljer sig från Marshal.GetTypeLibGuidForAssembly metodens, som beräknar vad LIBID ska baseras på den aktuella sammansättningen.
Mer information om biblioteksidentifierare finns i Exporterad sammansättningskonvertering.
Se även
Gäller för
GetTypeLibGuid(UCOMITypeLib)
Varning
Use System.Runtime.InteropServices.Marshal.GetTypeLibGuid(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.
Hämtar biblioteksidentifieraren (LIBID) för ett typbibliotek.
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
Parametrar
- pTLB
- UCOMITypeLib
Typbiblioteket vars LIBID ska hämtas.
Returer
LIBID för typbiblioteket som parametern pekar på pTLB .
- Attribut
Kommentarer
GetTypeLibGuid extraherar LIBID direkt från ett befintligt typbibliotek. Den här åtgärden skiljer sig från Marshal.GetTypeLibGuidForAssembly metodens, som beräknar vad LIBID ska baseras på den aktuella sammansättningen.
Mer information om biblioteksidentifierare finns i Exporterad sammansättningskonvertering.