System.Runtime.InteropServices.Marshal.GetTypeLibName Method

Retrieves the name of a type library.

Syntax

public static string GetTypeLibName (System.Runtime.InteropServices.ComTypes.ITypeLib typelib)

Parameters

typelib
The type library whose name is to be retrieved.

Returns

The name of the type library that the typelib 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: 2.0.0.0, 4.0.0.0
Since: .NET 2.0