PeerNearMe::InviteAsync Method (Object^)

 

Receives an invitation response from a peer regarding joining a peer collaboration application.

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

public:
[SecurityCriticalAttribute]
virtual void InviteAsync(
	Object^ userToken
) override

Parameters

userToken
Type: System::Object^

User-defined object passed to the callback of the asynchronous operation for identification. This required parameter must be unique across all asynchronous invitation operations still in-progress.

Exception Condition
ObjectDisposedException

The PeerApplication object has been disposed.

ArgumentException

The userToken argument specifies null.

PeerToPeerException

This PeerApplication object does not specify a valid Guid.

.NET Framework
Available since 3.5
Return to top
Show: