EMS.Services.TEMSInternalAPI.QueryUserName
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: EMS.Services.pas EMS.Services.hpp
| |
| Unit: EMS.Services | |
| Parent: TEMSInternalAPI | |
Delphi
function QueryUserName(const AUserName: string;
out AResponse: IEMSResourceResponseContent): Boolean; overload;
function QueryUserName(const AUserName: string): Boolean; overload;
C++
bool __fastcall QueryUserName(const System::UnicodeString AUserName, /* out */ _di_IEMSResourceResponseContent &AResponse)/* overload */;
bool __fastcall QueryUserName(const System::UnicodeString AUserName)/* overload */;
Description
Retrieves the EMS User from the EMS Server that matches an EMS user name.
QueryUserName queries the EMS Server to retrieve the data for a given AUserName.
The QueryUserName method is overloaded:
- The first overloaded method receives the
AUserNameto execute a get query request to the EMS User resource, and uses theAResponseto return the response from the EMS Server. - The second overloaded method receives the
AUserNameand calls the first overloaded method.
QueryUserName returns False if the EMS User is Not found. Otherwise, QueryUserName returns True.