Share via


ISettingsManager3.GetValueAsync(String, CancellationToken) Method

Definition

Gets the value of a setting.

public:
 System::Threading::Tasks::ValueTask<Microsoft::VisualStudio::RpcContracts::Settings::SettingRequestResult ^> GetValueAsync(System::String ^ moniker, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask<Microsoft.VisualStudio.RpcContracts.Settings.SettingRequestResult> GetValueAsync (string moniker, System.Threading.CancellationToken cancellationToken);
abstract member GetValueAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.VisualStudio.RpcContracts.Settings.SettingRequestResult>
Public Function GetValueAsync (moniker As String, cancellationToken As CancellationToken) As ValueTask(Of SettingRequestResult)

Parameters

moniker
String

The setting moniker (case insensitive).

cancellationToken
CancellationToken

A cancellation token.

Returns

An async task whose result is an object representing success or failure. If the query succeeded, that object also supplies the setting value.

Applies to