Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PeerNearMe.RefreshDataAsync Method

Initiates a network operation to retrieve the application, object and presence data specific to a PeerNearMe instance.

Namespace:  System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)
public void RefreshDataAsync(
	Object userToken
)

Parameters

userToken
Type: System.Object

User-specified state object that is passed to the delegate when this method completes the operation.

ExceptionCondition
ObjectDisposedException

The PeerNearMe object has been disposed.

ArgumentNullException

The userToken argument specifies null.

PeerToPeerException

The prior RefreshDataAsync call has not yet completed.

The data retrieved is stored in a cache accessed by the GetApplications and GetObjects methods as well as the PresenceStatus property. The InternalRefreshData method only needs to be used if the caller is not subscribed to the specified Peer, PeerNearMe, or PeerContact.

This method blocks additional calls until the network operation is complete and cache has been updated.

The caller is not required to sign in with the SignIn method or via a user interface in to complete this operation successfully.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.