PeerCollaboration.ApplicationLaunchInfo 屬性


取得 PeerApplicationLaunchInfo 物件,內含因遠端對等電腦的共同作業要求而啟動應用程式時所需的資訊。Gets the PeerApplicationLaunchInfo object that contains information needed when an application is started due to a collaboration request from a remote peer.

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



如果應用程式因邀請而啟動,就會傳回 PeerApplicationLaunchInfo 物件,內含傳送該應用程式邀請的對等電腦相關資訊和邀請本身,否則傳回 nullIf the application was started due to an invitation, a PeerApplicationLaunchInfo object that contains both information about the peer that sent the application invitation and the invitation itself is returned; otherwise, null is returned. 這個屬性的預設值為 nullThe default value for this property is null.



這個屬性會由共同作業感知 PeerApplication 實例在啟動後使用,以判斷它是否因為來自遠端對等的共同作業要求而啟動。This property is to be used by a collaboration-aware PeerApplication instance after it is started to determine whether it was started due to a collaboration request from a remote peer. 呼叫應用程式應該檢查 DataMessage 屬性,以取得有關邀請要求的進一步資訊。The calling application should inspect the Data and Message properties to get further information about the invitation request.

存取此屬性需要 PermissionStateUnrestrictedAccess to this property requires a PermissionState of Unrestricted. 此狀態會在共同 Peer 作業會話開始時建立。This state is created when the Peer collaboration session begins.