AppServiceRequest AppServiceRequest AppServiceRequest AppServiceRequest Class

Definition

Represents a message that the endpoint for one app service sends to another app service. App services enable app-to-app communication by allowing you to provide services from your Universal Windows app to other Universal Windows app.

public : sealed class AppServiceRequest : IAppServiceRequestpublic sealed class AppServiceRequest : IAppServiceRequestPublic NotInheritable Class AppServiceRequest Implements IAppServiceRequest// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

To get an AppServiceRequest, use the AppServiceRequestReceivedEventArgs.Request property.

Properties

Message Message Message Message

Gets the message that request from the app service contains.

public : ValueSet Message { get; }public ValueSet Message { get; }Public ReadOnly Property Message As ValueSet// You can use this property in JavaScript.
Value
ValueSet ValueSet ValueSet ValueSet

The message that request from the app service contains.

Methods

SendResponseAsync(ValueSet) SendResponseAsync(ValueSet) SendResponseAsync(ValueSet) SendResponseAsync(ValueSet)

Sends a response to a received request.

public : IAsyncOperation<AppServiceResponseStatus> SendResponseAsync(ValueSet message)public IAsyncOperation<AppServiceResponseStatus> SendResponseAsync(ValueSet message)Public Function SendResponseAsync(message As ValueSet) As IAsyncOperation( Of AppServiceResponseStatus )// You can use this method in JavaScript.
Parameters
message
ValueSet ValueSet ValueSet ValueSet

The message that you want to include in the response.

Returns

Remarks

Calling AppServiceRequest is optional. An endpoint for an app service does not have to return a response to a request.

See Also