UserEndpointPresenceServices.BeginUpdatePresenceState Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.