ITypeLib Interface

 
System_CAPS_noteNote

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

Provides the managed definition of the ITypeLib interface.

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

[GuidAttribute("00020402-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class ITypeLib

NameDescription
System_CAPS_pubmethodFindName(String^, Int32, array<ITypeInfo^>^, array<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.

System_CAPS_pubmethodGetLibAttr(IntPtr%)

Retrieves the structure that contains the library's attributes.

System_CAPS_pubmethodGetTypeComp(ITypeComp^%)

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.

System_CAPS_pubmethodGetTypeInfoCount()

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.

System_CAPS_pubmethodReleaseTLibAttr(IntPtr)

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
Show: