ContactPanelLaunchFullAppRequestedEventArgs 类

定义

提供 LaunchFullAppRequested 事件的事件信息。

public ref class ContactPanelLaunchFullAppRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContactPanelLaunchFullAppRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ContactPanelLaunchFullAppRequestedEventArgs
Public NotInheritable Class ContactPanelLaunchFullAppRequestedEventArgs
继承
Object Platform::Object IInspectable ContactPanelLaunchFullAppRequestedEventArgs
属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
应用功能
contactsSystem

示例

以下示例演示了本主题中的备注。

async void OnLaunchFullAppRequested(ContactPanel ContactPanel,
                                    ContactPanelLaunchFullAppRequestedEventArgs e)
{
    if (!e.Handled)
    {
        e.Handled = true;
        if (await TryLaunchFullAppFromCurrentStateAsync())
        {
            // we've successfully started the full version of our app; close the hosted view.
            ContactPanel.ClosePanel();
        }
    }
}

注解

首先,检查查看 Handled 属性为 false。 然后,将 Handled 属性设置为 true,然后启动应用。 根据你希望为用户提供的体验类型,请考虑关闭联系人面板,因为他们将直接与应用的完整版本交互。

属性

Handled

获取或设置一个值,该值指示是否已处理 LaunchFullAppRequested 事件。

适用于