IEnvironmentVariableService.UpdateEnvironmentVariablesAsync 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.
Updates the environment variables and notifies subscribers of any changes.
public System.Threading.Tasks.Task UpdateEnvironmentVariablesAsync (System.Collections.Generic.IReadOnlyDictionary<string,string?> updatedVariables, System.Threading.CancellationToken cancellationToken);
abstract member UpdateEnvironmentVariablesAsync : System.Collections.Generic.IReadOnlyDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UpdateEnvironmentVariablesAsync (updatedVariables As IReadOnlyDictionary(Of String, String), cancellationToken As CancellationToken) As Task
Parameters
- updatedVariables
- IReadOnlyDictionary<String,String>
Environment variables to update, where the key is the variable name and the value can be null if the variable is unset.
- cancellationToken
- CancellationToken
A cancellation token to cancel the in-progress invocation.
Returns
A task representing the async operation.