This documentation is archived and is not being maintained.

ITypeInfo Interface

Provides the managed definition of the Component Automation ITypeInfo interface.

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

public interface ITypeInfo

The ITypeInfo type exposes the following members.

Public methodAddressOfMemberRetrieves the addresses of static functions or variables, such as those defined in a DLL.
Public methodCreateInstanceCreates a new instance of a type that describes a component class (coclass).
Public methodGetContainingTypeLibRetrieves the type library that contains this type description and its index within that type library.
Public methodGetDllEntryRetrieves a description or specification of an entry point for a function in a DLL.
Public methodGetDocumentationRetrieves the documentation string, the complete Help file name and path, and the context ID for the Help topic for a specified type description.
Public methodGetFuncDescRetrieves the FUNCDESC structure that contains information about a specified function.
Public methodGetIDsOfNamesMaps between member names and member IDs, and parameter names and parameter IDs.
Public methodGetImplTypeFlagsRetrieves the IMPLTYPEFLAGS value for one implemented interface or base interface in a type description.
Public methodGetMopsRetrieves marshaling information.
Public methodGetNamesRetrieves 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 methodGetRefTypeInfoRetrieves the referenced type descriptions if a type description references other type descriptions.
Public methodGetRefTypeOfImplTypeRetrieves the type description of the implemented interface types if a type description describes a COM class.
Public methodGetTypeAttrRetrieves a TYPEATTR structure that contains the attributes of the type description.
Public methodGetTypeCompRetrieves the ITypeComp interface for the type description, which enables a client compiler to bind to the type description's members.
Public methodGetVarDescRetrieves a VARDESC structure that describes the specified variable.
Public methodInvokeInvokes a method, or accesses a property of an object, that implements the interface described by the type description.
Public methodReleaseFuncDescReleases a FUNCDESC structure previously returned by the GetFuncDesc method.
Public methodReleaseTypeAttrReleases a TYPEATTR structure previously returned by the GetTypeAttr method.
Public methodReleaseVarDescReleases a VARDESC structure previously returned by the GetVarDesc method.

For additional information about ITypeInfo, 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.