ISettingsManager3.GetValueAsync(String, CancellationToken) 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.
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.