WalletTransaction.DisplayAmount 屬性

定義

警告

不再支援 ApplicationModel.Wallet 命名空間,且即將淘汰。 我們鼓勵開發人員避免使用此命名空間。

取得或設定交易金額。

public:
 property Platform::String ^ DisplayAmount { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring DisplayAmount();

void DisplayAmount(winrt::hstring value);
/// [get: Windows.Foundation.Metadata.Deprecated("IWalletTransaction is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("IWalletTransaction is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
winrt::hstring DisplayAmount();

void DisplayAmount(winrt::hstring value);
public string DisplayAmount { get; set; }
public string DisplayAmount { [Windows.Foundation.Metadata.Deprecated("IWalletTransaction is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("IWalletTransaction is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")] set; }
var string = walletTransaction.displayAmount;
walletTransaction.displayAmount = string;
Public Property DisplayAmount As String

屬性值

String

Platform::String

winrt::hstring

交易金額。

屬性

備註

這是字串,而不是數位,而且將資料寫入 至 WalletTransaction 的實體負責貨幣符號、十進位形式、其他當地語系化考慮等等。

適用於