Partager via


ISettingsManager3.SetValueAsync(String, Object, CancellationToken) Method

Definition

Changes the value of a setting.

public:
 System::Threading::Tasks::ValueTask SetValueAsync(System::String ^ moniker, System::Object ^ value, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask SetValueAsync (string moniker, object value, System.Threading.CancellationToken cancellationToken);
abstract member SetValueAsync : string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Function SetValueAsync (moniker As String, value As Object, cancellationToken As CancellationToken) As ValueTask

Parameters

moniker
String

The setting moniker (case insensitive).

value
Object

The new value for the setting.

cancellationToken
CancellationToken

A cancellation token.

Returns

An async task.

Exceptions

Thrown if the caller lacks permission to change the setting.

Applies to