共用方式為


AppServiceResponse 類別

定義

表示 App Service 為了回應要求而傳送的訊息。 應用程式服務可讓您將通用 Windows 應用程式的服務提供給其他通用 Windows 應用程式,藉此啟用應用程式對應用程式通訊。

public ref class AppServiceResponse 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 AppServiceResponse final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AppServiceResponse 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 AppServiceResponse
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AppServiceResponse
Public NotInheritable Class AppServiceResponse
繼承
Object Platform::Object IInspectable AppServiceResponse
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

在 JavaScript 中,這個類別的實例會傳遞至您針對 AppServiceConnection.SendMessageAsync 方法傳回的作業所實作的事件處理常式。

屬性

Message

取得來自 App Service 的回應包含的訊息。

Status

取得來自 App Service 之回應的狀態。

適用於

另請參閱