WalletItemStore.DeleteAsync(String) 方法

定义

注意

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

从电子钱包数据存储中删除具有给定 ID 的特定钱包项。

public:
 virtual IAsyncAction ^ DeleteAsync(Platform::String ^ id) = DeleteAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction DeleteAsync(winrt::hstring const& id);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("IWalletItemStore is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
IAsyncAction DeleteAsync(winrt::hstring const& id);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction DeleteAsync(string id);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("IWalletItemStore is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
public IAsyncAction DeleteAsync(string id);
function deleteAsync(id)
Public Function DeleteAsync (id As String) As IAsyncAction

参数

id
String

Platform::String

winrt::hstring

要从数据存储中删除的钱包项的 ID。

返回

异步操作。 如果使用 异步编程,则结果类型为 void

属性

适用于

另请参阅