Edit

Share via


UserEndpointPresenceServices.BeginUpdatePresenceState Method

Definition

Begins an asynchronous operation to publish the user or endpoint presence state.

public:
 IAsyncResult ^ BeginUpdatePresenceState(Microsoft::Rtc::Collaboration::Presence::PresenceState ^ newState, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginUpdatePresenceState (Microsoft.Rtc.Collaboration.Presence.PresenceState newState, AsyncCallback userCallback, object state);
member this.BeginUpdatePresenceState : Microsoft.Rtc.Collaboration.Presence.PresenceState * AsyncCallback * obj -> IAsyncResult
Public Function BeginUpdatePresenceState (newState As PresenceState, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

newState
PresenceState

New user state for the endpoint, must be of type UserState or EndpointState.

userCallback
AsyncCallback

The method to be called when the asynchronous operation is completed.

state
Object

A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Returns

An IAsyncResult that references the asynchronous operation.

Exceptions

Thrown when the endpoint is not in the "registered" state, or the current state of LocalOwnerPresence is not "subscribed".

Thrown when newState passed is null.

Thrown when newState is not of type UserState or EndpointState.

Applies to