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)

C++
public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Settings::ServiceUploadResult ^> ^ SetAsync(Microsoft::VisualStudio::Settings::NamedVersionedString ^ value);

Parameters

Returns

Applies to

Visual Studio SDK 2017 a Visual Studio SDK 2015
Produkt Versiounen
Visual Studio SDK 2015, 2017

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.

C#
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Settings.ServiceUploadResult> SetAsync(Microsoft.VisualStudio.Settings.NamedVersionedString value, System.Threading.CancellationToken cancellationToken = default);

Parameters

cancellationToken
CancellationToken

Returns

True if the value was replaced successfully, else false

Applies to

Visual Studio SDK 2022 a Visual Studio SDK 2019
Produkt Versiounen
Visual Studio SDK 2019, 2022