ITypeLib Interface


Provides the managed definition of the ITypeLib interface.

public interface class ITypeLib
public interface ITypeLib
type ITypeLib = interface
Public Interface ITypeLib


For additional information about the ITypeLib interface, see the MSDN Library.

The common language runtime throws an exception when a COM method in native code returns an HRESULT. For more information, see How to: Map HRESULTs and Exceptions.


FindName(String, Int32, ITypeInfo[], Int32[], Int16)

Finds occurrences of a type description in a type library.

GetDocumentation(Int32, String, String, Int32, String)

Retrieves the library's documentation string, the complete Help file name and path, and the context identifier for the library Help topic in the Help file.


Retrieves the structure that contains the library's attributes.


Enables a client compiler to bind to a library's types, variables, constants, and global functions.

GetTypeInfo(Int32, ITypeInfo)

Retrieves the specified type description in the library.


Returns the number of type descriptions in the type library.

GetTypeInfoOfGuid(Guid, ITypeInfo)

Retrieves the type description that corresponds to the specified GUID.

GetTypeInfoType(Int32, TYPEKIND)

Retrieves the type of a type description.

IsName(String, Int32)

Indicates whether a passed-in string contains the name of a type or member described in the library.


Releases the TYPELIBATTR structure originally obtained from the GetLibAttr(IntPtr) method.

Applies to