AppServiceRequestReceivedEventArgs 类

定义

为从应用服务连接的另一终结点收到消息时发生的 AppServiceConnection.RequestReceived 事件提供数据。 应用服务允许你向其他通用 Windows 应用提供服务,从而实现应用到应用的通信。

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

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

此类的实例将传递给为 AppServiceConnection.RequestReceived 事件实现的事件处理程序。

属性

Request

获取从应用服务收到的请求。

方法

GetDeferral()

通知系统事件处理程序在事件处理程序返回后可能会继续执行工作。

适用于

另请参阅