Bagikan melalui


Marshal.GetTypeLibName Metode

Definisi

Mengambil nama pustaka jenis.

Overload

GetTypeLibName(ITypeLib)

Mengambil nama pustaka jenis.

GetTypeLibName(UCOMITypeLib)
Kedaluwarsa.

Mengambil nama pustaka jenis.

GetTypeLibName(ITypeLib)

Mengambil nama pustaka jenis.

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

Parameter

typelib
ITypeLib

Pustaka jenis yang namanya akan diambil.

Mengembalikan

Nama pustaka jenis yang dirujuk typelib parameter.

Atribut

Pengecualian

Parameternya typelib adalah null.

Keterangan

Nama yang dikembalikan oleh metode ini adalah pengidentifikasi yang digunakan dengan pernyataan pustaka, seperti ADODB untuk pustaka jenis Microsoft ADO. Nama ini bukan nama file.

Anda juga dapat mengambil nama pustaka jenis dengan memanggil UCOMITypeInfo.GetDocumentation metode dan meneruskan -1 untuk parameter pertamanya.

Lihat juga

Berlaku untuk

GetTypeLibName(UCOMITypeLib)

Perhatian

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

Mengambil nama pustaka jenis.

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

Parameter

pTLB
UCOMITypeLib

Pustaka jenis yang namanya akan diambil.

Mengembalikan

Nama pustaka jenis yang dirujuk pTLB parameter.

Atribut

Keterangan

Nama yang dikembalikan oleh metode ini adalah pengidentifikasi yang digunakan dengan pernyataan pustaka, seperti ADODB untuk pustaka jenis Microsoft ADO. Nama ini bukan nama file.

Anda juga dapat mengambil nama pustaka jenis dengan memanggil UCOMITypeInfo.GetDocumentation metode dan meneruskan -1 untuk parameter pertamanya.

Lihat juga

Berlaku untuk