PeerCollaboration.ApplicationLaunchInfo 屬性

定義

取得 PeerApplicationLaunchInfo 物件,內含因遠端對等電腦的共同作業要求而啟動應用程式時所需的資訊。

public:
 static property System::Net::PeerToPeer::Collaboration::PeerApplicationLaunchInfo ^ ApplicationLaunchInfo { System::Net::PeerToPeer::Collaboration::PeerApplicationLaunchInfo ^ get(); };
public static System.Net.PeerToPeer.Collaboration.PeerApplicationLaunchInfo ApplicationLaunchInfo { [System.Security.SecurityCritical] get; }
[<get: System.Security.SecurityCritical>]
static member ApplicationLaunchInfo : System.Net.PeerToPeer.Collaboration.PeerApplicationLaunchInfo
Public Shared ReadOnly Property ApplicationLaunchInfo As PeerApplicationLaunchInfo

屬性值

如果應用程式因邀請而啟動,就會傳回 PeerApplicationLaunchInfo 物件,內含傳送該應用程式邀請的對等電腦相關資訊和邀請本身,否則傳回 null。 這個屬性的預設值為 null

屬性

備註

當共同作業感知實例啟動時,這個屬性會由共同作業感知 PeerApplication 實例使用,以判斷它是否因為遠端對等的共同作業要求而啟動。 呼叫端應用程式應該檢查 DataMessage 屬性,以取得邀請要求的詳細資訊。

存取這個屬性需要 PermissionStateUnrestricted 。 當共同作業會話開始時, Peer 就會建立此狀態。

適用於

另請參閱