Table of Contents

IUserManager.FindByPhoneNumber Method

Retrieves the user with the specified phone number, or nil if no user is found. If two or more users are found with same phone number, an exception will be raised.

Syntax

Unit: Sphinx.UserManager

function IUserManager.FindByPhoneNumber(const PhoneNumber: string): TUser; virtual; abstract;

Parameters

<-> Parameter Type Description
const PhoneNumber string The user phpne number to search for.

Returns

The user entity matching the specified search criteria, or nil if it does not exist.

See also