LocalEndpointPresenceServices.EndPresenceQuery Method
Ends the asynchronous operation initiated by the BeginPresenceQuery.
Namespace: Microsoft.Rtc.Collaboration
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Function EndPresenceQuery ( _
result As IAsyncResult _
) As IEnumerable(Of RemotePresentityNotification)
'Usage
Dim instance As LocalEndpointPresenceServices
Dim result As IAsyncResult
Dim returnValue As IEnumerable(Of RemotePresentityNotification)
returnValue = instance.EndPresenceQuery(result)
public IEnumerable<RemotePresentityNotification> EndPresenceQuery(
IAsyncResult result
)
Parameters
- result
Type: System.IAsyncResult
The reference to the pending asynchronous operation.
Return Value
Type: System.Collections.Generic.IEnumerable<RemotePresentityNotification>
The list of presence notifications for the targets.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when result is null. |
ArgumentException | Thrown when result was created by a Begin method for a different operation. |
InvalidOperationException | Thrown when EndPresenceQuery was called more than once for the same instance of result. |
PublishSubscribeException | Thrown when the SIP SERVICE request is rejected by the server. |
RealTimeException | Thrown when SIP Transport, SIP authentication and credential-related errors are encountered. |
See Also
Reference
LocalEndpointPresenceServices Class