Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 class ITypeInfo2 : ITypeInfo

NameDescription
System_CAPS_pubmethodAddressOfMember(Int32, INVOKEKIND, IntPtr%)

Retrieves the addresses of static functions or variables, such as those defined in a DLL.

System_CAPS_pubmethodCreateInstance(Object^, Guid%, Object^%)

Creates a new instance of a type that describes a component class (coclass).

System_CAPS_pubmethodGetAllCustData(IntPtr)

Gets all custom data items for the library.

System_CAPS_pubmethodGetAllFuncCustData(Int32, IntPtr)

Gets all custom data from the specified function.

System_CAPS_pubmethodGetAllImplTypeCustData(Int32, IntPtr)

Gets all custom data for the specified implementation type.

System_CAPS_pubmethodGetAllParamCustData(Int32, Int32, IntPtr)

Gets all of the custom data for the specified function parameter.

System_CAPS_pubmethodGetAllVarCustData(Int32, IntPtr)

Gets the variable for the custom data.

System_CAPS_pubmethodGetContainingTypeLib(ITypeLib^%, Int32%)

Retrieves the type library that contains this type description and its index within that type library.

System_CAPS_pubmethodGetCustData(Guid%, Object^%)

Gets the custom data.

System_CAPS_pubmethodGetDllEntry(Int32, INVOKEKIND, IntPtr, IntPtr, IntPtr)

Retrieves a description or specification of an entry point for a function in a DLL.

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

System_CAPS_pubmethodGetDocumentation2(Int32, String^%, Int32%, String^%)

Retrieves 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.

System_CAPS_pubmethodGetFuncCustData(Int32, Guid%, Object^%)

Gets the custom data from the specified function.

System_CAPS_pubmethodGetFuncDesc(Int32, IntPtr%)

Retrieves the FUNCDESC structure that contains information about a specified function.

System_CAPS_pubmethodGetFuncIndexOfMemId(Int32, INVOKEKIND, Int32%)

Binds to a specific member based on a known DISPID, where the member name is not known (for example, when binding to a default member).

System_CAPS_pubmethodGetIDsOfNames(array<String^>^, Int32, array<Int32>^)

Maps between member names and member IDs, and parameter names and parameter IDs.

System_CAPS_pubmethodGetImplTypeCustData(Int32, Guid%, Object^%)

Gets the implementation type of the custom data.

System_CAPS_pubmethodGetImplTypeFlags(Int32, IMPLTYPEFLAGS%)

Retrieves the IMPLTYPEFLAGS value for one implemented interface or base interface in a type description.

System_CAPS_pubmethodGetMops(Int32, String^%)

Retrieves marshaling information.

System_CAPS_pubmethodGetNames(Int32, array<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.

System_CAPS_pubmethodGetParamCustData(Int32, Int32, Guid%, Object^%)

Gets the specified custom data parameter.

System_CAPS_pubmethodGetRefTypeInfo(Int32, ITypeInfo^%)

Retrieves the referenced type descriptions, if a type description references other type descriptions.

System_CAPS_pubmethodGetRefTypeOfImplType(Int32, Int32%)

Retrieves the type description of the implemented interface types, if a type description describes a COM class.

System_CAPS_pubmethodGetTypeAttr(IntPtr%)

Retrieves a TYPEATTR structure that contains the attributes of the type description.

System_CAPS_pubmethodGetTypeComp(ITypeComp^%)

Retrieves the ITypeComp interface for the type description, which enables a client compiler to bind to the type description's members.

System_CAPS_pubmethodGetTypeFlags(Int32%)

Returns the type flags without any allocations. This method returns a DWORD type flag, which expands the type flags without growing the TYPEATTR (type attribute).

System_CAPS_pubmethodGetTypeKind(TYPEKIND%)

Returns the TYPEKIND enumeration quickly, without doing any allocations.

System_CAPS_pubmethodGetVarCustData(Int32, Guid%, Object^%)

Gets the variable for the custom data.

System_CAPS_pubmethodGetVarDesc(Int32, IntPtr%)

Retrieves a VARDESC structure that describes the specified variable.

System_CAPS_pubmethodGetVarIndexOfMemId(Int32, Int32%)

Binds to a specific member based on a known DISPID, where the member name is not known (for example, when binding to a default member).

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

System_CAPS_pubmethodReleaseFuncDesc(IntPtr)

Releases a FUNCDESC structure previously returned by the GetFuncDesc method.

System_CAPS_pubmethodReleaseTypeAttr(IntPtr)

Releases a TYPEATTR structure previously returned by the GetTypeAttr method.

System_CAPS_pubmethodReleaseVarDesc(IntPtr)

Releases a VARDESC structure previously returned by the GetVarDesc method.

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:
© 2017 Microsoft