EMS.ResourceTypes.RegisterResource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterResource(const TypeInfo: PTypeInfo); overload;
procedure RegisterResource(const TypeInfo: PTypeInfo; const AAttributes: TEMSResourceAttributes); overload;

C++

extern DELPHI_PACKAGE void __fastcall RegisterResource(const System::Typinfo::PTypeInfo TypeInfo)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
EMS.ResourceTypes.pas
EMS.ResourceTypes.hpp
EMS.ResourceTypes EMS.ResourceTypes

Description

Registers the specified RTTI data of an EMS resource class on the RAD Server Engine (EMS Server).

To extract the RTTI data from an EMS resource class, you can call TypeInfo with the identifier of the target EMS resource class as argument. For example:

Delphi:

RegisterResource(TypeInfo(TMyResource));

C++:

RegisterResource(__typeinfo(TMyResource));

AAttributes is an optional instance of TEMSResourceAttributes that defines RTTI attributes that should override those in the specified EMS resource class RTTI data.

See Also