StoreRequestHelper.SendRequestAsync(StoreContext, UInt32, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<StoreSendRequestResult> SendRequestAsync(StoreContext const& context, uint32_t const& requestKind, winrt::hstring const& parametersAsJson);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StoreSendRequestResult> SendRequestAsync(StoreContext context, uint requestKind, string parametersAsJson);
function sendRequestAsync(context, requestKind, parametersAsJson)
Public Shared Function SendRequestAsync (context As StoreContext, requestKind As UInteger, parametersAsJson As String) As IAsyncOperation(Of StoreSendRequestResult)
Parameters
- context
- 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
-
UInt32
unsigned int
uint32_t
A value that identifies the request that you want to send to the Windows Store.
- parametersAsJson
-
String
Platform::String
winrt::hstring
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.
- Attributes
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.