WalletVerb 类

定义

注意

ApplicationModel.Wallet 命名空间不再受支持,不久将弃用。 建议开发人员避免使用此命名空间。

表示可用于应用激活的电子钱包谓词。 这是一个字符串,适用于描述操作的 UI。

public ref class WalletVerb sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Wallet.IWalletVerbFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WalletVerb final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Wallet.IWalletVerbFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class WalletVerb final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Wallet.IWalletVerbFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Deprecated("WalletVerb is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
class WalletVerb final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Wallet.IWalletVerbFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WalletVerb
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Wallet.IWalletVerbFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class WalletVerb
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Wallet.IWalletVerbFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Deprecated("WalletVerb is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
public sealed class WalletVerb
function WalletVerb(name)
Public NotInheritable Class WalletVerb
继承
Object Platform::Object IInspectable WalletVerb
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

可以将谓词(如“register”、“pay with”)与电子钱包中的项目相关联。 当用户选择谓词时,应用将激活。 在 WalletActionActivatedEventArgs 数据中,所选谓词作为激活 (的一部分传递给应用,因为 ActionId 值, ActionKind 将是 Verb) 。

注意

JavaScript 应用使用 WebUIWalletActionActivatedEventArgs

WalletVerb 对象表示 WalletItem.Verbs 属性的各个项。

谓词是激活时要显示的 UI 的应用的提示,该 UI 可能特定于用户选择的谓词。

有关使用 电子钱包 激活的详细信息,请参阅 快速入门:使用 API 中的“通过电子钱包处理应用激活”部分。

构造函数

WalletVerb(String)

注意

ApplicationModel.Wallet 命名空间不再受支持,不久将弃用。 建议开发人员避免使用此命名空间。

初始化 WalletVerb 类的新实例。

属性

Name

注意

ApplicationModel.Wallet 命名空间不再受支持,不久将弃用。 建议开发人员避免使用此命名空间。

获取或设置自定义谓词名称。

适用于

另请参阅