System.Classes.UnRegisterClasses

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure UnRegisterClasses(const AClasses: array of TPersistentClass);

C++

extern DELPHI_PACKAGE void __fastcall UnRegisterClasses(TPersistentClass const *AClasses, const int AClasses_High);

Properties

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

Description

Unregisters a set of classes.

Call UnRegisterClasses to unregister several persistent object classes in a single line. When a class is unregistered, it can't be loaded or saved by the component streaming system.

The AClasses parameter specifies the classes (descendants of TPersistent) to unregister.

Note: In C++, the AClasses_Size parameter indicates the index of the last class in the AClasses array (one less than the number of classes).

After unregistering a class, its name can be reused to register another object class.

See Also