Share via


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 此状态。

适用于

另请参阅