ITypeLib Interface


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Provides the managed definition of the ITypeLib interface.

Namespace:   System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

Public Interface ITypeLib

System_CAPS_pubmethodFindName(String, Int32, ITypeInfo(), Int32(), Int16)

Finds occurrences of a type description in a type library.

System_CAPS_pubmethodGetDocumentation(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.

System_CAPS_pubmethodGetTypeInfo(Int32, ITypeInfo)

Retrieves the specified type description in the library.


Returns the number of type descriptions in the type library.

System_CAPS_pubmethodGetTypeInfoOfGuid(Guid, ITypeInfo)

Retrieves the type description that corresponds to the specified GUID.

System_CAPS_pubmethodGetTypeInfoType(Int32, TYPEKIND)

Retrieves the type of a type description.

System_CAPS_pubmethodIsName(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 method.

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top