StorePurchaseProperties.ExtendedJsonData Property
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.
Gets or sets a JSON-formatted string that contains extended data to pass with the purchase request to the Microsoft Store.
public:
property Platform::String ^ ExtendedJsonData { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring ExtendedJsonData();
void ExtendedJsonData(winrt::hstring value);
public string ExtendedJsonData { get; set; }
var string = storePurchaseProperties.extendedJsonData;
storePurchaseProperties.extendedJsonData = string;
Public Property ExtendedJsonData As String
Property Value
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\" }"
.