StorePurchaseProperties.ExtendedJsonData 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 JSON 格式字串,其中包含要與購買要求一起傳遞至 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
屬性值
JSON 格式字串,其中包含要與購買要求一起傳遞至 Microsoft Store 的擴充資料。
備註
使用 ExtendedJsonData 屬性來存取 StorePurchaseProperties 物件的完整資料,作為程式碼中的 JSON 格式字串。 如需資料結構的詳細資訊,請參閱 Store 產品的資料架構。
如果您想要將購買要求與自訂行銷活動產生關聯,您可以將名為 DevOfferId
的欄位新增至此屬性所傳回的 JSON 字串,然後將更新的字串指派給此屬性。 您稍後可以藉由存取StoreCollectionData物件的DeveloperOfferId屬性來擷取此值。 以下是包含 DevOfferId
欄位的範例 JSON 字串: "{\"DevOfferId\": \"your campaign ID\" }"
。