PeerContact.Invite 메서드

정의

전송자가 지원하는 피어 협업에 참가하라는 초대를 보냅니다.

오버로드

Invite(PeerApplication, String, Byte[])

전송자가 지원하는 특정 PeerApplication에 참가하라는 초대를 보냅니다.

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

전송자가 지원하는 특정 PeerEndPoint 애플리케이션에 참가하라는 초대를 지정된 PeerCollaboration에 보냅니다.

Invite()

전송자가 지원하는 피어 협업에 참가하라는 초대를 보냅니다.

Invite(PeerEndPoint)

전송자와 함께 피어 협업에 참가하라는 초대를 특정 엔드포인트에 보냅니다.

설명

호출자는 필요가 없습니다에 로그인 하는 System.Net.PeerToPeer.Collaboration 이 메서드가 성공적으로 완료 하려면 인프라입니다. PeerInvitationResponse 초대를 받은 피어의 아닙니다 공동 작업 초대를 수락 하는 초대 대 상자와 동일 합니다. 애플리케이션을 설치 하지 않은 원격 피어에는 초대를 보낸 초대는 자동으로 거부 됩니다.

Invite(PeerApplication, String, Byte[])

전송자가 지원하는 특정 PeerApplication에 참가하라는 초대를 보냅니다.

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

애플리케이션 초대와 함께 원격 피어에 보낼 메시지입니다.

invitationData
Byte[]

초대와 연결할 사용자 정의 데이터 blob입니다. 크기는 16,384바이트 이하일 수 있습니다.

반환

초대를 받은 피어의 PeerInvitationResponse입니다.

특성

예외

PeerApplicationnull이 될 수 없는 경우

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

현재 애플리케이션에 대한 Id가 존재하지 않거나 비어 있는 경우

설명

호출자는 필요가 없습니다에 로그인 하는 System.Net.PeerToPeer.Collaboration 이 메서드가 성공적으로 완료 하려면 인프라입니다. PeerInvitationResponse 초대를 받은 피어의 아닙니다 공동 작업 초대를 수락 하는 초대 대 상자와 동일 합니다. 애플리케이션을 설치 하지 않은 원격 피어에는 초대를 보낸 초대는 자동으로 거부 됩니다.

이 메서드를 호출 하려면를 PermissionStateUnrestricted합니다. 이 상태는 피어 협업 세션이 시작 될 때 생성 됩니다.

호출자 참고

이 메서드를 호출 하려면를 PermissionStateUnrestricted합니다. 이 상태는 피어 협업 세션이 시작 될 때 생성 됩니다.

추가 정보

적용 대상

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

전송자가 지원하는 특정 PeerEndPoint 애플리케이션에 참가하라는 초대를 지정된 PeerCollaboration에 보냅니다.

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

매개 변수

peerEndPoint
PeerEndPoint

초대를 보낼 엔드포인트 또는 원격 피어입니다.

applicationToInvite
PeerApplication

초대가 전송되는 애플리케이션입니다.

message
String

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

invitationData
Byte[]

초대와 연결할 사용자 정의 데이터 blob입니다. 크기는 16,384바이트 이하일 수 있습니다.

반환

초대를 받은 피어의 PeerInvitationResponse입니다.

특성

예외

PeerEndPoint의 엔드포인트가 null일 수 없는 경우

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

현재 애플리케이션에 대한 Id가 존재하지 않거나 비어 있는 경우

설명

호출자는 필요가 없습니다에 로그인 하는 System.Net.PeerToPeer.Collaboration 이 메서드가 성공적으로 완료 하려면 인프라입니다. PeerInvitationResponse 초대를 받은 피어의 아닙니다 공동 작업 초대를 수락 하는 초대 대 상자와 동일 합니다. 애플리케이션을 설치 하지 않은 원격 피어에는 초대를 보낸 초대는 자동으로 거부 됩니다.

호출자 참고

이 메서드를 호출 하려면를 PermissionStateUnrestricted합니다. 이 상태는 피어 협업 세션이 시작 될 때 생성 됩니다.

추가 정보

적용 대상

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입니다.

특성

예외

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

현재 애플리케이션에 대한 Id가 없는 경우

설명

호출자는 필요가 없습니다에 로그인 하는 System.Net.PeerToPeer.Collaboration 이 메서드가 성공적으로 완료 하려면 인프라입니다. PeerInvitationResponse 초대를 받은 피어의 아닙니다 공동 작업 초대를 수락 하는 초대 대 상자와 동일 합니다. 애플리케이션을 설치 하지 않은 원격 피어에는 초대를 보낸 초대는 자동으로 거부 됩니다.

호출자 참고

이 메서드를 호출 하려면를 PermissionStateUnrestricted합니다. 이 상태는 피어 협업 세션이 시작 될 때 생성 됩니다.

추가 정보

적용 대상

Invite(PeerEndPoint)

전송자와 함께 피어 협업에 참가하라는 초대를 특정 엔드포인트에 보냅니다.

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

매개 변수

peerEndPoint
PeerEndPoint

초대를 받을 엔드포인트입니다.

반환

초대를 받은 피어 엔드포인트의 PeerInvitationResponse입니다.

특성

예외

PeerEndPointnull이 될 수 없는 경우

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

  • Invite() 작업을 완료할 수 없는 경우.

  • 현재 실행 중인 애플리케이션이 피어 협업 인프라에 등록되지 않았습니다.

  • EndPoint개체에 지정된 PeerEndPoint가 잘못된 경우

설명

호출자는 필요가 없습니다에 로그인 하는 System.Net.PeerToPeer.Collaboration 이 메서드가 성공적으로 완료 하려면 인프라입니다. PeerInvitationResponse 초대를 받은 피어의 아닙니다 공동 작업 초대를 수락 하는 초대 대 상자와 동일 합니다. 애플리케이션을 설치 하지 않은 원격 피어에는 초대를 보낸 초대는 자동으로 거부 됩니다.

호출자 참고

이 메서드를 호출 하려면를 PermissionStateUnrestricted합니다. 이 상태는 피어 협업 세션이 시작 될 때 생성 됩니다.

추가 정보

적용 대상