PeerContact.Invite Method (PeerEndPoint, PeerApplication, String, Byte)
Assembly: System.Net (in System.Net.dll)
[SecurityCriticalAttribute] public PeerInvitationResponse Invite( PeerEndPoint peerEndPoint, PeerApplication applicationToInvite, string message, byte invitationData )
The endpoint or remote peer to which to send the invitation.
The application for which the invitation is sent.
A message to send to the remote peer along with the application invitation. The message can be no more than 255 Unicode characters.
A user-defined data blob to associate with the invitation. Its size can be no more than 16,384 bytes.
Return ValueType: System.Net.PeerToPeer.Collaboration.PeerInvitationResponse
A PeerInvitationResponse from the peer who received the invitation.
Endpoint in PeerEndPoint cannot be null.
The PeerEndPoint object has been disposed.
The Id for the current application does not exist or is empty.
The caller is not required to sign-in to the System.Net.PeerToPeer.Collaboration infrastructure for this method to complete successfully. A PeerInvitationResponse from the invitee is not the same as the invitee accepting the invitation to collaborate. If an invitation is sent to a remote peer that has not installed the application, the invitation is automatically declined.
Notes to Callers:
Available since 3.5