共用方式為


IEnvironmentVariableService.UpdateEnvironmentVariablesAsync Method

Definition

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.

Applies to