API:System.Win.ComObj.TComObjectFactory.ClassName
Delphi
property ClassName: string read FClassName;
C++
__property System::UnicodeString ClassName = {read=FClassName};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Win.ComObj.pas System.Win.ComObj.hpp |
System.Win.ComObj | TComObjectFactory |
Description
Returns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument).
System.Win.ComObj.TComObjectFactory.ClassName inherits from System.TObject.ClassName. All content below this line refers to System.TObject.ClassName.
Returns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument).
Use ClassName to obtain the class name from an object instance or class reference. This is useful for differentiating object instances that are assigned to a variable that has the type of an ancestor class.
Note: In C++ code, call ClassName as a method to obtain an object's class name. Use the global static function to obtain the class name from a metaclass object.