Language

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 。

属性

例外

PeerApplication に null は指定できません。

PeerEndPoint オブジェクトが破棄されました。

現在のアプリケーションの Id が存在しないか、空です。

注釈

呼び出し元は、このメソッドが正常に完了するために、 System.Net.PeerToPeer.Collaboration インフラストラクチャにサインインする必要はありません。 招待されたユーザーからの PeerInvitationResponse は、招待者が共同作業への招待を受け入れるのと同じではありません。 アプリケーションをインストールしていないリモート ピアに招待が送信されると、招待は自動的に拒否されます。

このメソッドを呼び出す場合は、PermissionStateのUnrestrictedが必要です。 この状態は、ピア コラボレーション セッションの開始時に作成されます。

注意 (呼び出し元)

このメソッドを呼び出す場合は、PermissionStateのUnrestrictedが必要です。 この状態は、ピア コラボレーション セッションの開始時に作成されます。

こちらもご覧ください

適用対象

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 文字以下の Unicode 文字にすることができます。

invitationData
Byte[]

招待に関連付けるユーザー定義データ BLOB。 サイズは 16,384 バイト以下です。

返品

招待を受け取ったピアからの PeerInvitationResponse 。

属性

例外

peerEndPoint内のエンドポイントをnullすることはできません。

PeerEndPoint オブジェクトが破棄されました。

現在のアプリケーションの Id が存在しないか、空です。

注釈

呼び出し元は、このメソッドが正常に完了するために、 System.Net.PeerToPeer.Collaboration インフラストラクチャにサインインする必要はありません。 招待されたユーザーからの PeerInvitationResponse は、招待者が共同作業への招待を受け入れるのと同じではありません。 アプリケーションをインストールしていないリモート ピアに招待が送信されると、招待は自動的に拒否されます。

注意 (呼び出し元)

このメソッドを呼び出す場合は、PermissionStateのUnrestrictedが必要です。 この状態は、ピア コラボレーション セッションの開始時に作成されます。

こちらもご覧ください

適用対象

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 は、招待者が共同作業への招待を受け入れるのと同じではありません。 アプリケーションをインストールしていないリモート ピアに招待が送信されると、招待は自動的に拒否されます。

注意 (呼び出し元)

このメソッドを呼び出す場合は、PermissionStateのUnrestrictedが必要です。 この状態は、ピア コラボレーション セッションの開始時に作成されます。

こちらもご覧ください

適用対象

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 。

属性

例外

PeerEndPoint に null は指定できません。

PeerEndPoint オブジェクトが破棄されました。

  • Invite()操作を完了できません。

  • 現在実行中のアプリケーションは、ピア コラボレーション インフラストラクチャに登録されていません。

  • EndPoint オブジェクトによって指定 PeerEndPoint 無効です。

注釈

呼び出し元は、このメソッドが正常に完了するために、 System.Net.PeerToPeer.Collaboration インフラストラクチャにサインインする必要はありません。 招待されたユーザーからの PeerInvitationResponse は、招待者が共同作業への招待を受け入れるのと同じではありません。 アプリケーションをインストールしていないリモート ピアに招待が送信されると、招待は自動的に拒否されます。

注意 (呼び出し元)

このメソッドを呼び出す場合は、PermissionStateのUnrestrictedが必要です。 この状態は、ピア コラボレーション セッションの開始時に作成されます。

こちらもご覧ください

適用対象