PeerNearMe.Invite 메서드

정의

원격 피어에게 피어 협업 애플리케이션에 참여하라는 초대를 보냅니다.

오버로드

Invite()

원격 피어에게 피어 협업 애플리케이션에 참여하라는 초대를 보냅니다.

Invite(PeerApplication, String, Byte[])

원격 피어에게 피어 협업 애플리케이션에 참여하라는 초대를 보냅니다. 애플리케이션 초대를 설명하거나 지정하는 데이터가 포함됩니다.

Invite()

원격 피어에게 피어 협업 애플리케이션에 참여하라는 초대를 보냅니다.

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

반환

원격 피어가 지정한 관련 PeerInvitationResponse 값이 들어 있는 PeerInvitationResponseType 개체입니다.

특성

예외

PeerNearMe 개체가 삭제되었습니다.

적용 대상

Invite(PeerApplication, String, Byte[])

원격 피어에게 피어 협업 애플리케이션에 참여하라는 초대를 보냅니다. 애플리케이션 초대를 설명하거나 지정하는 데이터가 포함됩니다.

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

매개 변수

applicationToInvite
PeerApplication

PeerApplication 인스턴스가 나타내는 관련 피어 협업 애플리케이션을 지정합니다.

message
String

애플리케이션 초대와 함께 원격 피어에 보낼 메시지입니다. 이 메시지에는 최대 255자의 유니코드 문자가 포함될 수 있습니다.

invitationData
Byte[]

초대와 연결할 사용자 정의 데이터 blob입니다. 최대 크기는 16K(16,384바이트)입니다.

반환

원격 피어가 지정한 관련 PeerInvitationResponse 값이 들어 있는 PeerInvitationResponseType 개체입니다.

특성

예외

PeerApplication 개체가 삭제되었습니다.

applicationToInvite 인수에 null이 지정된 경우

적용 대상