Share via


IStringStorage.DeleteIfExistsAsync Method

Definition

Overloads

DeleteIfExistsAsync(String)

Deletes a stored value.

DeleteIfExistsAsync(String, CancellationToken)

Deletes a stored value.

DeleteIfExistsAsync(String)

Deletes a stored value.

public:
 System::Threading::Tasks::Task ^ DeleteIfExistsAsync(System::String ^ name);
public System.Threading.Tasks.Task DeleteIfExistsAsync (string name);
abstract member DeleteIfExistsAsync : string -> System.Threading.Tasks.Task
Public Function DeleteIfExistsAsync (name As String) As Task

Parameters

name
String

The case-insensitive name of the setting.

Returns

Returns Task.

Applies to

DeleteIfExistsAsync(String, CancellationToken)

Deletes a stored value.

public System.Threading.Tasks.Task DeleteIfExistsAsync (string name, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteIfExistsAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

name
String

The case-insensitive name of the setting.

cancellationToken
CancellationToken

Returns

Exceptions

May be thrown when name is null.

May be thrown when name is empty.

Applies to