PersistentChatUserServices.BeginFindUsers Method

Definition

Finds users having a first name, last name, or email address containing the corresponding search string.

public:
 IAsyncResult ^ BeginFindUsers(System::String ^ searchLastName, System::String ^ searchFirstName, System::String ^ searchEmail, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginFindUsers (string searchLastName, string searchFirstName, string searchEmail, AsyncCallback userCallback, object state);
member this.BeginFindUsers : string * string * string * AsyncCallback * obj -> IAsyncResult
Public Function BeginFindUsers (searchLastName As String, searchFirstName As String, searchEmail As String, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

searchLastName
String

Last name search string.

searchFirstName
String

First name search string.

searchEmail
String

Email address search string.

userCallback
AsyncCallback

The method to be invoked when this asynchronous operation completes.

state
Object

An object to be passed back to the callback.

Returns

An IAsyncResult that references this operation.

Exceptions

searchLastName, searchFirstName, and searchEmail are null or empty.

The chat server connection is not in a valid state to send the command.

The PersistentChatEndpoint encountered an error communicating with the chat server.

Remarks

This request will be processed asynchronously. Call EndFindUsers(IAsyncResult, Boolean) to complete this asynchronous operation.

Applies to