PeerContact.SubscribeAsync(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously subscribes the calling peer to the PeerContact, and as a result, the peer will receive any future PeerCollaboration events associated with the PeerContact.
public:
virtual void SubscribeAsync(System::Object ^ userToken);
public virtual void SubscribeAsync (object userToken);
abstract member SubscribeAsync : obj -> unit
override this.SubscribeAsync : obj -> unit
Public Overridable Sub SubscribeAsync (userToken As Object)
Parameters
- userToken
- Object
A user-defined Object that contains information about the SubscribeAsync(Object) operation.
Exceptions
UserToken
cannot be null
.
The calling peer is not signed in to People Near Me.
The PeerContact object has been disposed.
Duplicate SubscribeAsync(Object) identifier.
Remarks
The SubscribeCompleted event is raised upon completion of this operation. If collaboration activities are not required to be asynchronous, the Subscribe method should be used instead.
Calling this method requires a PermissionState of Unrestricted. This state is created when the peer collaboration session begins.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om