Marshal.GetTypeLibName Método

Definición

Recupera el nombre de una biblioteca de tipos.

Sobrecargas

GetTypeLibName(ITypeLib)

Recupera el nombre de una biblioteca de tipos.

GetTypeLibName(UCOMITypeLib)
Obsoletos.

Recupera el nombre de una biblioteca de tipos.

GetTypeLibName(ITypeLib)

Recupera el nombre de una biblioteca de tipos.

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

Parámetros

typelib
ITypeLib

Biblioteca de tipos cuyo nombre se va a recuperar.

Devoluciones

Nombre de la biblioteca de tipos al que apunta el parámetro typelib.

Atributos

Excepciones

El parámetro typelib es null.

Comentarios

El nombre devuelto por este método es el identificador que se usa con la instrucción de biblioteca, como ADODB para la biblioteca de tipos de Microsoft ADO. El nombre no es un nombre de archivo.

También puede recuperar el nombre de la biblioteca de tipos llamando al UCOMITypeInfo.GetDocumentation método y pasando -1 para su primer parámetro.

Consulte también

Se aplica a

GetTypeLibName(UCOMITypeLib)

Precaución

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

Recupera el nombre de una biblioteca de tipos.

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

Parámetros

pTLB
UCOMITypeLib

Biblioteca de tipos cuyo nombre se va a recuperar.

Devoluciones

Nombre de la biblioteca de tipos al que apunta el parámetro pTLB.

Atributos

Comentarios

El nombre devuelto por este método es el identificador que se usa con la instrucción de biblioteca, como ADODB para la biblioteca de tipos de Microsoft ADO. El nombre no es un nombre de archivo.

También puede recuperar el nombre de la biblioteca de tipos llamando al UCOMITypeInfo.GetDocumentation método y pasando -1 para su primer parámetro.

Consulte también

Se aplica a