Compartir a través de


SettingsExtensibility.WriteAsync Method

Definition

Starts a batch write of multiple setting values, allowing to add multiple write operations to it.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Settings.SettingsWriteResponse> WriteAsync (Action<Microsoft.VisualStudio.Extensibility.Settings.SettingsWriteBatch> batch, string description, System.Threading.CancellationToken cancellationToken);
member this.WriteAsync : Action<Microsoft.VisualStudio.Extensibility.Settings.SettingsWriteBatch> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Settings.SettingsWriteResponse>
Public Function WriteAsync (batch As Action(Of SettingsWriteBatch), description As String, cancellationToken As CancellationToken) As Task(Of SettingsWriteResponse)

Parameters

batch
Action<SettingsWriteBatch>

The batch to which write operations can be added.

description
String

A human-readable description of the change.

cancellationToken
CancellationToken

Cancellation cancellationToken for the async operation.

Returns

The result of the batch write.

Applies to