Peer.InviteAsync Method (Object)

 

Begins an asynchronous invitation operation which sends an invitation to a Peer to start a specific PeerApplication.

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

abstract InviteAsync : 
        userToken:Object -> unit

Parameters

userToken
Type: System.Object

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

Exception Condition
ArgumentNullException

userToken is null.

PeerToPeerException
  • An error occurred during the invitation process.

  • The currently executing application is not registered with the collaboration infrastructure.

Calling this method requires a PermissionState of Unrestricted. This state is created when the peer collaboration session begins.

.NET Framework
Available since 3.5
Return to top
Show: