Edit

Share via


UserEndpointPresenceServices.BeginUpdatePrivacyPreference Method

Definition

Begins an asynchronous operation to set the local owner preferred privacy mode.

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

Parameters

privacyPreference
PrivacyModePreference

Value indicating what the local owner's privacy preference would be.

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 a user endpoint or subscribed to this session.

Applies to