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
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
Returns
IAsyncOperation<AppServiceResponseStatus>
IAsyncOperation<AppServiceResponseStatus>
IAsyncOperation<AppServiceResponseStatus>
IAsyncOperation<AppServiceResponseStatus>
An asynchronous operation to send the response.
Remarks
Calling AppServiceRequest is optional. An endpoint for an app service does not have to return a response to a request.