This documentation is archived and is not being maintained.

ITypeInfo2 Interface

Provides the managed definition of the ITypeInfo2 interface.

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

[GuidAttribute("00020412-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface ITypeInfo2 : ITypeInfo

The ITypeInfo2 type exposes the following members.

  NameDescription
Public methodAddressOfMember(Int32, INVOKEKIND, IntPtr)Retrieves the addresses of static functions or variables, such as those defined in a DLL. (Inherited from ITypeInfo.)
Public methodAddressOfMember(Int32, INVOKEKIND, IntPtr)Retrieves the addresses of static functions or variables, such as those defined in a DLL.
Public methodCreateInstance(Object, Guid, Object)Creates a new instance of a type that describes a component class (coclass). (Inherited from ITypeInfo.)
Public methodCreateInstance(Object, Guid, Object)Creates a new instance of a type that describes a component class (coclass).
Public methodGetAllCustDataGets all custom data items for the library.
Public methodGetAllFuncCustDataGets all custom data from the specified function.
Public methodGetAllImplTypeCustDataGets all custom data for the specified implementation type.
Public methodGetAllParamCustDataGets all of the custom data for the specified function parameter.
Public methodGetAllVarCustDataGets the variable for the custom data.
Public methodGetContainingTypeLib(ITypeLib, Int32)Retrieves the type library that contains this type description and its index within that type library. (Inherited from ITypeInfo.)
Public methodGetContainingTypeLib(ITypeLib, Int32)Retrieves the type library that contains this type description and its index within that type library.
Public methodGetCustDataGets the custom data.
Public methodGetDllEntry(Int32, INVOKEKIND, IntPtr, IntPtr, IntPtr)Retrieves a description or specification of an entry point for a function in a DLL. (Inherited from ITypeInfo.)
Public methodGetDllEntry(Int32, INVOKEKIND, IntPtr, IntPtr, IntPtr)Retrieves a description or specification of an entry point for a function in a DLL.
Public methodGetDocumentation(Int32, String, String, Int32, String)Retrieves the documentation string, the complete Help file name and path, and the context ID for the Help topic for a specified type description. (Inherited from ITypeInfo.)
Public methodGetDocumentation(Int32, String, String, Int32, String)Retrieves the documentation string, the complete Help file name and path, and the context ID for the Help topic for a specified type description.
Public methodGetDocumentation2Retrieves the 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 methodGetFuncCustDataGets the custom data from the specified function.
Public methodGetFuncDesc(Int32, IntPtr)Retrieves the FUNCDESC structure that contains information about a specified function. (Inherited from ITypeInfo.)
Public methodGetFuncDesc(Int32, IntPtr)Retrieves the FUNCDESC structure that contains information about a specified function.
Public methodGetFuncIndexOfMemIdBinds to a specific member based on a known DISPID, where the member name is not known (for example, when binding to a default member).
Public methodGetIDsOfNames(String[], Int32, Int32[])Maps between member names and member IDs, and parameter names and parameter IDs. (Inherited from ITypeInfo.)
Public methodGetIDsOfNames(String[], Int32, Int32[])Maps between member names and member IDs, and parameter names and parameter IDs.
Public methodGetImplTypeCustDataGets the implementation type of the custom data.
Public methodGetImplTypeFlags(Int32, IMPLTYPEFLAGS)Retrieves the IMPLTYPEFLAGS value for one implemented interface or base interface in a type description. (Inherited from ITypeInfo.)
Public methodGetImplTypeFlags(Int32, IMPLTYPEFLAGS)Retrieves the IMPLTYPEFLAGS value for one implemented interface or base interface in a type description.
Public methodGetMops(Int32, String)Retrieves marshaling information. (Inherited from ITypeInfo.)
Public methodGetMops(Int32, String)Retrieves marshaling information.
Public methodGetNames(Int32, String[], Int32, Int32)Retrieves the variable with the specified member ID (or the name of the property or method and its parameters) that corresponds to the specified function ID. (Inherited from ITypeInfo.)
Public methodGetNames(Int32, String[], Int32, Int32)Retrieves the variable with the specified member ID (or the name of the property or method and its parameters) that corresponds to the specified function ID.
Public methodGetParamCustDataGets the specified custom data parameter.
Public methodGetRefTypeInfo(Int32, ITypeInfo)Retrieves the referenced type descriptions if a type description references other type descriptions. (Inherited from ITypeInfo.)
Public methodGetRefTypeInfo(Int32, ITypeInfo)Retrieves the referenced type descriptions, if a type description references other type descriptions.
Public methodGetRefTypeOfImplType(Int32, Int32)Retrieves the type description of the implemented interface types if a type description describes a COM class. (Inherited from ITypeInfo.)
Public methodGetRefTypeOfImplType(Int32, Int32)Retrieves the type description of the implemented interface types, if a type description describes a COM class.
Public methodGetTypeAttr(IntPtr)Retrieves a TYPEATTR structure that contains the attributes of the type description. (Inherited from ITypeInfo.)
Public methodGetTypeAttr(IntPtr)Retrieves a TYPEATTR structure that contains the attributes of the type description.
Public methodGetTypeComp(ITypeComp)Retrieves the ITypeComp interface for the type description, which enables a client compiler to bind to the type description's members. (Inherited from ITypeInfo.)
Public methodGetTypeComp(ITypeComp)Retrieves the ITypeComp interface for the type description, which enables a client compiler to bind to the type description's members.
Public methodGetTypeFlagsReturns the type flags without any allocations. This method returns a DWORD type flag, which expands the type flags without growing the TYPEATTR (type attribute).
Public methodGetTypeKindReturns the TYPEKIND enumeration quickly, without doing any allocations.
Public methodGetVarCustDataGets the variable for the custom data.
Public methodGetVarDesc(Int32, IntPtr)Retrieves a VARDESC structure that describes the specified variable. (Inherited from ITypeInfo.)
Public methodGetVarDesc(Int32, IntPtr)Retrieves a VARDESC structure that describes the specified variable.
Public methodGetVarIndexOfMemIdBinds to a specific member based on a known DISPID, where the member name is not known (for example, when binding to a default member).
Public methodInvoke(Object, Int32, Int16, DISPPARAMS, IntPtr, IntPtr, Int32)Invokes a method, or accesses a property of an object, that implements the interface described by the type description. (Inherited from ITypeInfo.)
Public methodInvoke(Object, Int32, Int16, DISPPARAMS, IntPtr, IntPtr, Int32)Invokes a method, or accesses a property of an object, that implements the interface described by the type description.
Public methodReleaseFuncDesc(IntPtr)Releases a FUNCDESC structure previously returned by the GetFuncDesc method. (Inherited from ITypeInfo.)
Public methodReleaseFuncDesc(IntPtr)Releases a FUNCDESC structure previously returned by the GetFuncDesc method.
Public methodReleaseTypeAttr(IntPtr)Releases a TYPEATTR structure previously returned by the GetTypeAttr method. (Inherited from ITypeInfo.)
Public methodReleaseTypeAttr(IntPtr)Releases a TYPEATTR structure previously returned by the GetTypeAttr method.
Public methodReleaseVarDesc(IntPtr)Releases a VARDESC structure previously returned by the GetVarDesc method. (Inherited from ITypeInfo.)
Public methodReleaseVarDesc(IntPtr)Releases a VARDESC structure previously returned by the GetVarDesc method.
Top

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