Edit

Share via


RemotePresence.EndPresenceQuery(IAsyncResult) Method

Definition

Ends the asynchronous operation initiated by the BeginPresenceQuery.

public:
 System::Collections::Generic::IEnumerable<Microsoft::Rtc::Collaboration::Presence::RemotePresentityNotificationData ^> ^ EndPresenceQuery(IAsyncResult ^ result);
public System.Collections.Generic.IEnumerable<Microsoft.Rtc.Collaboration.Presence.RemotePresentityNotificationData> EndPresenceQuery (IAsyncResult result);
member this.EndPresenceQuery : IAsyncResult -> seq<Microsoft.Rtc.Collaboration.Presence.RemotePresentityNotificationData>
Public Function EndPresenceQuery (result As IAsyncResult) As IEnumerable(Of RemotePresentityNotificationData)

Parameters

result
IAsyncResult

The reference to the pending asynchronous operation.

Returns

The list of presence notifications for the targets.

Exceptions

Thrown when result is null.

Thrown when result was created by a Begin method for a different operation.

Thrown when EndPresenceQuery was called more than once for the same instance of result.

Thrown when the SIP SERVICE request is rejected by the server.

Thrown when SIP Transport, SIP authentication and credential-related errors are encountered.

Applies to