System.Win.ComObj.TTypedComObjectFactory.ClassInfo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ClassInfo: ITypeInfo read FClassInfo;

C++

__property _di_ITypeInfo ClassInfo = {read=FClassInfo};

Properties

Type Visibility Source Unit Parent
property public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TTypedComObjectFactory

Description

Specifies an interface reference that provides type information without having to load a type library.

ClassInfo is of type ITypeInfo, which is an interface usually used for reading information about objects. Use ITypeInfo to extract information about the characteristics and capabilities of objects from type libraries.

Type information interfaces are intended to describe the parts of the application that can be called by outside clients, rather than those that might be used internally to build an application.

The ITypeInfo interface provides access to the following:

The set of function descriptions associated with the type; for interfaces, this contains the set of member functions in the interface.

The set of data member descriptions associated with the type; for structures, this contains the set of fields of the type.

The general attributes of the type, such as whether it describes a structure, an interface, and so on.

An ITypeInfo instance provides various information about a type, and is used in different ways. A compiler can use an ITypeInfo to compile references to members of the type. A type interface browser can use it to find information about each member of the type.

Note: An IDispatch implementer can use it to provide automatic delegation of IDispatch calls to an interface.

Note: A type library is a container for type descriptions. A type library contains descriptions of one or more objects, and is accessed through the ITypeLib interface. The ITypeLib interface provides access to information about the type description in a type library. The descriptions of individual objects are accessed through the ITypeInfo interface.