Compartir a través de


IAsyncStringStorage.SetAsync Method

Definition

Overloads

SetAsync(NamedVersionedString)
SetAsync(NamedVersionedString, CancellationToken)

Creates or changes a setting value. The value provided will replace the existing value only if value.Revision.Revision is equal to the current revision of the value. The revision number increases each time the value is set.

SetAsync(NamedVersionedString)

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Settings::ServiceUploadResult ^> ^ SetAsync(Microsoft::VisualStudio::Settings::NamedVersionedString ^ value);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Settings.ServiceUploadResult> SetAsync (Microsoft.VisualStudio.Settings.NamedVersionedString value);
abstract member SetAsync : Microsoft.VisualStudio.Settings.NamedVersionedString -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Settings.ServiceUploadResult>
Public Function SetAsync (value As NamedVersionedString) As Task(Of ServiceUploadResult)

Parameters

Returns

Applies to

SetAsync(NamedVersionedString, CancellationToken)

Creates or changes a setting value. The value provided will replace the existing value only if value.Revision.Revision is equal to the current revision of the value. The revision number increases each time the value is set.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Settings.ServiceUploadResult> SetAsync (Microsoft.VisualStudio.Settings.NamedVersionedString value, System.Threading.CancellationToken cancellationToken = default);
abstract member SetAsync : Microsoft.VisualStudio.Settings.NamedVersionedString * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Settings.ServiceUploadResult>
Public Function SetAsync (value As NamedVersionedString, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ServiceUploadResult)

Parameters

cancellationToken
CancellationToken

Returns

True if the value was replaced successfully, else false

Applies to