Peer.Invite Peer.Invite Peer.Invite Peer.Invite Method

Definition

Sends an invitation to a Peer to start a specific PeerApplication.

Overloads

Invite(PeerApplication, String, Byte[]) Invite(PeerApplication, String, Byte[]) Invite(PeerApplication, String, Byte[]) Invite(PeerApplication, String, Byte[])

Sends an invitation to a Peer to start a specific PeerApplication.

Invite() Invite() Invite() Invite()

Sends an invitation to a Peer to start a specific PeerApplication.

Invite(PeerApplication, String, Byte[]) Invite(PeerApplication, String, Byte[]) Invite(PeerApplication, String, Byte[]) Invite(PeerApplication, String, Byte[])

Sends an invitation to a Peer to start a specific PeerApplication.

public:
 abstract System::Net::PeerToPeer::Collaboration::PeerInvitationResponse ^ Invite(System::Net::PeerToPeer::Collaboration::PeerApplication ^ applicationToInvite, System::String ^ message, cli::array <System::Byte> ^ invitationData);
public abstract System.Net.PeerToPeer.Collaboration.PeerInvitationResponse Invite (System.Net.PeerToPeer.Collaboration.PeerApplication applicationToInvite, string message, byte[] invitationData);
abstract member Invite : System.Net.PeerToPeer.Collaboration.PeerApplication * string * byte[] -> System.Net.PeerToPeer.Collaboration.PeerInvitationResponse
Public MustOverride Function Invite (applicationToInvite As PeerApplication, message As String, invitationData As Byte()) As PeerInvitationResponse

Parameters

applicationToInvite
PeerApplication PeerApplication PeerApplication PeerApplication

The PeerApplication for which the invitation is sent.

message
String String String String

A message to send to the remote peer along with the application invitation. The message can be no more than 255 Unicode characters.

invitationData
Byte[]

A user defined data blob to associate with the invitation. Its size can be no more than 16,384 bytes.

Returns

Exceptions

The application is not registered for collaboration.

  • An error occurred during the invitation process.

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

Remarks

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

Invite() Invite() Invite() Invite()

Sends an invitation to a Peer to start a specific PeerApplication.

public:
 abstract System::Net::PeerToPeer::Collaboration::PeerInvitationResponse ^ Invite();
public abstract System.Net.PeerToPeer.Collaboration.PeerInvitationResponse Invite ();
abstract member Invite : unit -> System.Net.PeerToPeer.Collaboration.PeerInvitationResponse
Public MustOverride Function Invite () As PeerInvitationResponse

Returns

Exceptions

  • An error occurred during the invitation process.

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

Remarks

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

See also

Applies to