RAD Studio VCL Reference
TTypedComObjectFactory.ClassInfo Property

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

property ClassInfo: ITypeInfo;
__property ITypeInfo ClassInfo;

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.


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!