IAsyncStringStorage.SetAsync 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.
Overloads
SetAsync(NamedVersionedString) | |
SetAsync(NamedVersionedString, CancellationToken) |
Creates or changes a setting value. The value provided will replace the existing value only if |
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
- value
- NamedVersionedString
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
- value
- NamedVersionedString
- cancellationToken
- CancellationToken
Returns
True if the value was replaced successfully, else false