EMS.Services.TEMSServices.TryGetService
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: EMS.Services.pas EMS.Services.hpp
| |
| Unit: EMS.Services | |
| Parent: TEMSServices | |
Delphi
class function TryGetService<T: IInterface>(out Intf: T): Boolean;
C++
template<typename T> __classmethod bool __fastcall TryGetService(/* out */ T &Intf);
Description
Fills Intf with an object interface of the specified service interface and returns True on success, or False if the EMS Server does not support the target service.
T may be any of the service interfaces of the EMS.Services unit.