ITypeInfo Interface

Definition

Provides the managed definition of the Component Automation ITypeInfo interface.

C#
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ITypeInfo
C#
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("00020401-0000-0000-C000-000000000046")]
public interface ITypeInfo
C#
public interface ITypeInfo
Derived
Attributes

Remarks

For more information, see ITypeInfo interface.

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.

Methods

AddressOfMember(Int32, INVOKEKIND, IntPtr)

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

CreateInstance(Object, Guid, Object)

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

GetContainingTypeLib(ITypeLib, Int32)

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

GetDllEntry(Int32, INVOKEKIND, IntPtr, IntPtr, IntPtr)

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

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

GetFuncDesc(Int32, IntPtr)

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

GetIDsOfNames(String[], Int32, Int32[])

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

GetImplTypeFlags(Int32, IMPLTYPEFLAGS)

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

GetMops(Int32, String)

Retrieves marshaling information.

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

GetRefTypeInfo(Int32, ITypeInfo)

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

GetRefTypeOfImplType(Int32, Int32)

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

GetTypeAttr(IntPtr)

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

GetTypeComp(ITypeComp)

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

GetVarDesc(Int32, IntPtr)

Retrieves a VARDESC structure that describes the specified variable.

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

ReleaseFuncDesc(IntPtr)

Releases a FUNCDESC structure previously returned by the GetFuncDesc(Int32, IntPtr) method.

ReleaseTypeAttr(IntPtr)

Releases a TYPEATTR structure previously returned by the GetTypeAttr(IntPtr) method.

ReleaseVarDesc(IntPtr)

Releases a VARDESC structure previously returned by the GetVarDesc(Int32, IntPtr) method.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0