ISettingsManager3.SetValueAsync(String, Object, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.