System.Runtime.InteropServices.Marshal.GetTypeLibName Method

Retrieves the name of a type library.

Syntax

[System.Obsolete]
public static string GetTypeLibName (UCOMITypeLib pTLB)

Parameters

pTLB
The type library whose name is to be retrieved.

Returns

The name of the type library that the pTLB parameter points to.

Remarks

The name returned by this method is the identifier used with the library statement, such as ADODB for the Microsoft ADO type library. The name is not a file name.

You can also retrieve the type library name by calling the UCOMITypeInfo.GetDocumentation(int, String@, String@, Int32@, String@) method and passing -1 for its first parameter.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0