Export (0) Print
Expand All

ITypeLib2 Interface

Provides a managed definition of the ITypeLib2 interface.

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

[GuidAttribute("00020411-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface ITypeLib2 : ITypeLib

The ITypeLib2 type exposes the following members.

  NameDescription
Public methodFindName(String, Int32, ITypeInfo[], Int32[], Int16)Finds occurrences of a type description in a type library. (Inherited from ITypeLib.)
Public methodFindName(String, Int32, ITypeInfo[], Int32[], Int16)Finds occurrences of a type description in a type library.
Public methodGetAllCustDataGets all custom data items for the library.
Public methodGetCustDataGets the custom data.
Public methodGetDocumentation(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. (Inherited from ITypeLib.)
Public methodGetDocumentation(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.
Public methodGetDocumentation2Retrieves the library's documentation string, the complete Help file name and path, the localization context to use, and the context ID for the library Help topic in the Help file.
Public methodGetLibAttr(IntPtr)Retrieves the structure that contains the library's attributes. (Inherited from ITypeLib.)
Public methodGetLibAttr(IntPtr)Retrieves the structure that contains the library's attributes.
Public methodGetLibStatisticsReturns statistics about a type library that are required for efficient sizing of hash tables.
Public methodGetTypeComp(ITypeComp)Enables a client compiler to bind to a library's types, variables, constants, and global functions. (Inherited from ITypeLib.)
Public methodGetTypeComp(ITypeComp)Enables a client compiler to bind to a library's types, variables, constants, and global functions.
Public methodGetTypeInfo(Int32, ITypeInfo)Retrieves the specified type description in the library. (Inherited from ITypeLib.)
Public methodGetTypeInfo(Int32, ITypeInfo)Retrieves the specified type description in the library.
Public methodGetTypeInfoCount()Returns the number of type descriptions in the type library. (Inherited from ITypeLib.)
Public methodGetTypeInfoCount()Returns the number of type descriptions in the type library.
Public methodGetTypeInfoOfGuid(Guid, ITypeInfo)Retrieves the type description that corresponds to the specified GUID. (Inherited from ITypeLib.)
Public methodGetTypeInfoOfGuid(Guid, ITypeInfo)Retrieves the type description that corresponds to the specified GUID.
Public methodGetTypeInfoType(Int32, TYPEKIND)Retrieves the type of a type description. (Inherited from ITypeLib.)
Public methodGetTypeInfoType(Int32, TYPEKIND)Retrieves the type of a type description.
Public methodIsName(String, Int32)Indicates whether a passed-in string contains the name of a type or member described in the library. (Inherited from ITypeLib.)
Public methodIsName(String, Int32)Indicates whether a passed-in string contains the name of a type or member described in the library.
Public methodReleaseTLibAttr(IntPtr)Releases the TYPELIBATTR structure originally obtained from the GetLibAttr method. (Inherited from ITypeLib.)
Public methodReleaseTLibAttr(IntPtr)Releases the TYPELIBATTR structure originally obtained from the GetLibAttr method.
Top

For additional information about the ITypeLib2 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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft