StorePurchaseProperties.ExtendedJsonData StorePurchaseProperties.ExtendedJsonData StorePurchaseProperties.ExtendedJsonData StorePurchaseProperties.ExtendedJsonData StorePurchaseProperties.ExtendedJsonData Property

Definition

Gets or sets a JSON-formatted string that contains extended data to pass with the purchase request to the Microsoft Store.

public : Platform::String ExtendedJsonData { get; set; }
winrt::hstring ExtendedJsonData();

void ExtendedJsonData(winrt::hstring extendedjsondata);
public string ExtendedJsonData { get; set; }
Public ReadWrite Property ExtendedJsonData As string
var string = storePurchaseProperties.extendedJsonData;
storePurchaseProperties.extendedJsonData = string;

Property Value

string string string

A JSON-formatted string that contains extended data to pass with the purchase request to the Microsoft Store.

Remarks

Use the ExtendedJsonData property to access the complete data for the StorePurchaseProperties object as a JSON-formatted string in your code. For more information about the structure of the data, see Data schemas for Store products.

If you want to associate the purchase request with a custom campaign, you can add a field named DevOfferId to the JSON string that is returned by this property and then assign the updated string to this property. You can then retrieve this value later by accessing the DeveloperOfferId property of a StoreCollectionData object. Here is an example JSON string that includes a DevOfferId field: "{\"DevOfferId\": \"your campaign ID\" }".

See also