IStorageItem.DeleteAsync Method

Definition

Overloads

DeleteAsync()

Deletes the current item.

DeleteAsync(StorageDeleteOption)

Deletes the current item, optionally deleting it permanently.

DeleteAsync()

Deletes the current item.

public:
 IAsyncAction ^ DeleteAsync();
IAsyncAction DeleteAsync();
[Windows.Foundation.Metadata.Overload("DeleteAsyncOverloadDefaultOptions")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction DeleteAsync();
function deleteAsync()
Public Function DeleteAsync () As IAsyncAction

Returns

IAsyncAction

No object or value is returned by this method when it completes.

Attributes

Remarks

This method uses StorageDeleteOption.default to determine whether the item is deleted permanently.

See also

DeleteAsync(StorageDeleteOption)

Deletes the current item, optionally deleting it permanently.

public:
 IAsyncAction ^ DeleteAsync(StorageDeleteOption option);
IAsyncAction DeleteAsync(StorageDeleteOption option);
[Windows.Foundation.Metadata.Overload("DeleteAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction DeleteAsync(StorageDeleteOption option);
function deleteAsync(option)
Public Function DeleteAsync (option As StorageDeleteOption) As IAsyncAction

Parameters

option
StorageDeleteOption

A value that indicates whether to delete the item permanently.

Returns

IAsyncAction

No object or value is returned by this method when it completes.

Attributes

See also

Applies to