PeerContact.Invite Method (PeerApplication, String, Byte)
Sends the specified invitation to join into the specified PeerApplication sponsored by the sender.
Assembly: System.Net (in System.Net.dll)
public override PeerInvitationResponse Invite( PeerApplication applicationToInvite, string message, byte invitationData )
- Type: System.Net.PeerToPeer.Collaboration.PeerApplication
The PeerApplication for which the invitation is sent.
- Type: System.String
A message to send to the remote peer along with the application invitation.
- Type: System.Byte
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.
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
Windows 8.1, Windows Server 2012 R2, 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.