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

项的显示名称。

属性

适用于