System.Classes.FindClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindClass(const ClassName: string): TPersistentClass;

C++

extern DELPHI_PACKAGE TPersistentClass __fastcall FindClass(const System::UnicodeString ClassName);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

Finds and returns a class that is derived from TPersistent.

Call FindClass to locate a class type by name. FindClass searches the classes that the streaming system knows about. Classes can be registered with a call to RegisterClasses so that the streaming system will recognize that class in a stream and know how to construct it.

If the requested class name cannot be found, FindClass raises an exception.

See Also