Redigera

Dela via


PeerNearMe.Invite Method

Definition

Sends an invitation to join a peer collaboration application to a remote peer.

Overloads

Invite()

Sends an invitation to join a peer collaboration application to a remote peer.

Invite(PeerApplication, String, Byte[])

Sends an invitation to join a peer collaboration application to a remote peer that includes data that describes or specifies the application invite.

Invite()

Sends an invitation to join a peer collaboration application to a remote peer.

public:
 override System::Net::PeerToPeer::Collaboration::PeerInvitationResponse ^ Invite();
[System.Security.SecurityCritical]
public override System.Net.PeerToPeer.Collaboration.PeerInvitationResponse Invite ();
[<System.Security.SecurityCritical>]
override this.Invite : unit -> System.Net.PeerToPeer.Collaboration.PeerInvitationResponse
Public Overrides Function Invite () As PeerInvitationResponse

Returns

PeerInvitationResponse object containing the relevant PeerInvitationResponseType value specified by the remote peer.

Attributes

Exceptions

The PeerNearMe object has been disposed.

Applies to

Invite(PeerApplication, String, Byte[])

Sends an invitation to join a peer collaboration application to a remote peer that includes data that describes or specifies the application invite.

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

Parameters

applicationToInvite
PeerApplication

Specifies the relevant Peer Collaboration application represented by a PeerApplication instance.

message
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. Size is limited to 16K (16,384 bytes).

Returns

PeerInvitationResponse object containing the relevant PeerInvitationResponseType value specified by the remote peer.

Attributes

Exceptions

The PeerApplication object has been disposed.

The applicationToInvite argument specifies null.

Applies to