WalletItem(WalletItemKind, String) Constructor

Definition

Caution

The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace.

Initializes a new instance of the WalletItem class.

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)

Parameters

kind
WalletItemKind

The type of wallet item.

displayName
String

Platform::String

winrt::hstring

The display name of the item.

Attributes

Applies to