共用方式為


ProductPurchaseDisplayProperties 類別

定義

用來提供在購買時向使用者顯示的產品名稱。 這個類別用於建立 RequestProductPurchaseAsync 作業,以視覺化方式代表應用程式內產品的大型類別目錄中的特定供應專案,此專案是由 Microsoft Store 中的單一產品專案所代表。

注意

Windows Phone 8 位開發人員也可以藉由提供影像來顯示 URI 和內部取用的描述,來顯示與產品相關聯的影像

public ref class ProductPurchaseDisplayProperties sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Store.IProductPurchaseDisplayPropertiesFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ProductPurchaseDisplayProperties final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Store.IProductPurchaseDisplayPropertiesFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class ProductPurchaseDisplayProperties final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Store.IProductPurchaseDisplayPropertiesFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ProductPurchaseDisplayProperties
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Store.IProductPurchaseDisplayPropertiesFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ProductPurchaseDisplayProperties
function ProductPurchaseDisplayProperties(name)
Public NotInheritable Class ProductPurchaseDisplayProperties
繼承
Object Platform::Object IInspectable ProductPurchaseDisplayProperties
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

建構函式

ProductPurchaseDisplayProperties()

建立 ProductPurchaseDisplayProperties的實例。

ProductPurchaseDisplayProperties(String)

建立 ProductPurchaseDisplayProperties 的實例,其中包含要向使用者顯示的指定產品名稱。

屬性

Description

僅Windows Phone。 這是內部產品描述。

Image

僅Windows Phone。 取得或設定在購買時用來代表產品之影像的位置。

Name

取得或設定在購買時向使用者顯示的產品名稱。

適用於