Share via


IEndpoint.BeginRefreshPresenceSession Method

Begins an asynchronous request to refresh all information associated with the user's presence.

Namespace:  Microsoft.Exchange.InstantMessaging
Assembly:  Microsoft.Exchange.InstantMessaging (in Microsoft.Exchange.InstantMessaging.dll)

Syntax

'Declaration
Function BeginRefreshPresenceSession ( _
    userCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As IEndpoint
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginRefreshPresenceSession(userCallback, _
    state)
IAsyncResult BeginRefreshPresenceSession(
    AsyncCallback userCallback,
    Object state
)

Parameters

  • state
    Type: System.Object
    Contains user state information for the requested operation.

Return Value

Type: System.IAsyncResult
An System.IAsyncResult object that references the asynchronous request.

Remarks

The BeginRefreshPresenceSession(AsyncCallback, Object) method begins a asynchronous request to update the all of the user's presence information. Any outstanding subscriptions for the presence session are terminated, and all group contact sessions are refreshed. These steps trigger an automatic retrieval of all current contacts and their subscriptions.