Marshal.GetTypeLibName 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 namnet på ett typbibliotek.
Överlagringar
| Name | Description |
|---|---|
| GetTypeLibName(ITypeLib) |
Hämtar namnet på ett typbibliotek. |
| GetTypeLibName(UCOMITypeLib) |
Föråldrad.
Hämtar namnet på ett typbibliotek. |
GetTypeLibName(ITypeLib)
Hämtar namnet på ett typbibliotek.
public:
static System::String ^ GetTypeLibName(System::Runtime::InteropServices::ComTypes::ITypeLib ^ typelib);
public static string GetTypeLibName(System.Runtime.InteropServices.ComTypes.ITypeLib typelib);
[System.Security.SecurityCritical]
public static string GetTypeLibName(System.Runtime.InteropServices.ComTypes.ITypeLib typelib);
static member GetTypeLibName : System.Runtime.InteropServices.ComTypes.ITypeLib -> string
[<System.Security.SecurityCritical>]
static member GetTypeLibName : System.Runtime.InteropServices.ComTypes.ITypeLib -> string
Public Shared Function GetTypeLibName (typelib As ITypeLib) As String
Parametrar
- typelib
- ITypeLib
Typbiblioteket vars namn ska hämtas.
Returer
Namnet på typbiblioteket som parametern pekar på typelib .
- Attribut
Undantag
Parametern typelib är null.
Kommentarer
Namnet som returneras av den här metoden är identifieraren som används med biblioteksinstrukturen, till exempel ADODB för biblioteket Microsoft ADO-typ. Namnet är inte ett filnamn.
Du kan också hämta typbibliotekets namn genom att anropa UCOMITypeInfo.GetDocumentation metoden och skicka -1 för den första parametern.
Se även
Gäller för
GetTypeLibName(UCOMITypeLib)
Varning
Use System.Runtime.InteropServices.Marshal.GetTypeLibName(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.
Hämtar namnet på ett typbibliotek.
public:
static System::String ^ GetTypeLibName(System::Runtime::InteropServices::UCOMITypeLib ^ pTLB);
public static string GetTypeLibName(System.Runtime.InteropServices.UCOMITypeLib pTLB);
[System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibName(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)]
public static string GetTypeLibName(System.Runtime.InteropServices.UCOMITypeLib pTLB);
[System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibName(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)]
[System.Security.SecurityCritical]
public static string GetTypeLibName(System.Runtime.InteropServices.UCOMITypeLib pTLB);
static member GetTypeLibName : System.Runtime.InteropServices.UCOMITypeLib -> string
[<System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibName(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)>]
static member GetTypeLibName : System.Runtime.InteropServices.UCOMITypeLib -> string
[<System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibName(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)>]
[<System.Security.SecurityCritical>]
static member GetTypeLibName : System.Runtime.InteropServices.UCOMITypeLib -> string
Public Shared Function GetTypeLibName (pTLB As UCOMITypeLib) As String
Parametrar
- pTLB
- UCOMITypeLib
Typbiblioteket vars namn ska hämtas.
Returer
Namnet på typbiblioteket som parametern pekar på pTLB .
- Attribut
Kommentarer
Namnet som returneras av den här metoden är identifieraren som används med biblioteksinstrukturen, till exempel ADODB för biblioteket Microsoft ADO-typ. Namnet är inte ett filnamn.
Du kan också hämta typbibliotekets namn genom att anropa UCOMITypeInfo.GetDocumentation metoden och skicka -1 för den första parametern.