共用方式為


WalletItem(WalletItemKind, String) 建構函式

定義

警告

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

初始化 WalletItem 類別的新實例。

public:
 WalletItem(WalletItemKind kind, Platform::String ^ displayName);
 WalletItem(WalletItemKind const& kind, winrt::hstring const& displayName);
/// [Windows.Foundation.Metadata.Deprecated("IWalletItemFactory is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
 WalletItem(WalletItemKind const& kind, winrt::hstring const& displayName);
public WalletItem(WalletItemKind kind, string displayName);
[Windows.Foundation.Metadata.Deprecated("IWalletItemFactory is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
public WalletItem(WalletItemKind kind, string displayName);
function WalletItem(kind, displayName)
Public Sub New (kind As WalletItemKind, displayName As String)

參數

kind
WalletItemKind

電子錢包專案的類型。

displayName
String

Platform::String

winrt::hstring

專案的顯示名稱。

屬性

適用於