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)
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 |
|
Calling this method requires a PermissionState of Unrestricted. This state is created when the peer collaboration session begins.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.