Marshal.GetTypeLibName Methode

Definitie

Hiermee haalt u de naam van een typebibliotheek op.

Overloads

Name Description
GetTypeLibName(ITypeLib)

Hiermee haalt u de naam van een typebibliotheek op.

GetTypeLibName(UCOMITypeLib)
Verouderd.

Hiermee haalt u de naam van een typebibliotheek op.

GetTypeLibName(ITypeLib)

Hiermee haalt u de naam van een typebibliotheek op.

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

Parameters

typelib
ITypeLib

De typebibliotheek waarvan de naam moet worden opgehaald.

Retouren

De naam van de typebibliotheek waarnaar de typelib parameter verwijst.

Kenmerken

Uitzonderingen

De typelib parameter is null.

Opmerkingen

De naam die door deze methode wordt geretourneerd, is de id die wordt gebruikt met de bibliotheekinstructie, zoals ADODB voor de Microsoft ADO-typebibliotheek. De naam is geen bestandsnaam.

U kunt ook de naam van de typebibliotheek ophalen door de methode aan UCOMITypeInfo.GetDocumentation te roepen en -1 door te geven voor de eerste parameter.

Zie ook

Van toepassing op

GetTypeLibName(UCOMITypeLib)

Let op

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

Hiermee haalt u de naam van een typebibliotheek op.

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

Parameters

pTLB
UCOMITypeLib

De typebibliotheek waarvan de naam moet worden opgehaald.

Retouren

De naam van de typebibliotheek waarnaar de pTLB parameter verwijst.

Kenmerken

Opmerkingen

De naam die door deze methode wordt geretourneerd, is de id die wordt gebruikt met de bibliotheekinstructie, zoals ADODB voor de Microsoft ADO-typebibliotheek. De naam is geen bestandsnaam.

U kunt ook de naam van de typebibliotheek ophalen door de methode aan UCOMITypeInfo.GetDocumentation te roepen en -1 door te geven voor de eerste parameter.

Zie ook

Van toepassing op