StoreRequestHelper StoreRequestHelper StoreRequestHelper StoreRequestHelper Class

Definition

Provides a helper method that can be used to send requests to the Microsoft Store for operations that do not yet have a corresponding API available in the Windows SDK.

public : static class StoreRequestHelper
public static class StoreRequestHelper
Public Static Class StoreRequestHelper
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced v1)

Methods

SendRequestAsync(StoreContext, UInt32, String) SendRequestAsync(StoreContext, UInt32, String) SendRequestAsync(StoreContext, UInt32, String) SendRequestAsync(StoreContext, UInt32, String)

Sends the specified request to the Windows Store with the provided context and parameters.

public : static IAsyncOperation<StoreSendRequestResult> SendRequestAsync(StoreContext context, unsigned int requestKind, Platform::String parametersAsJson)
public static IAsyncOperation<StoreSendRequestResult> SendRequestAsync(StoreContext context, UInt32 requestKind, String parametersAsJson)
Public Static Function SendRequestAsync(context As StoreContext, requestKind As UInt32, parametersAsJson As String) As IAsyncOperation( Of StoreSendRequestResult )
Windows.Services.Store.StoreRequestHelper.sendRequestAsync(context, requestKind, parametersAsJson).done( /* Your success and error handlers */ );
Parameters
context
StoreContext StoreContext StoreContext StoreContext

An object that specifies the user for which to perform the operation. If your app is a single-user app (that is, it runs only in the context of the user that launched the app), use the StoreContext.GetDefault method to get a StoreContext object that you can use to send a request that operates in the context of the user. If your app is a multi-user app, use the StoreContext.GetForUser method to get a StoreContext object that you can use to send a request that operates in the context of a specific user.

requestKind
unsigned int UInt32 UInt32 UInt32

A value that identifies the request that you want to send to the Windows Store.

parametersAsJson
Platform::String String String String

A JSON-formatted string that contains the arguments to pass to the request.

Returns

An asynchronous operation that, on successful completion, returns a StoreSendRequestResult object that provides status and error info about the request.

Remarks

This method is intended to be used to send requests to the Windows Store for operations that do not yet have a corresponding API available in the Windows SDK. For more information about using this method, including details about the requests that are currently available, see Send requests to the Store.

See Also

See Also