SettingsObserver.TryGetSettingValue<T> Method

Definition

Attempts to fetch the value of the specified setting.

protected bool TryGetSettingValue<T> (string moniker, out T? value, Microsoft.VisualStudio.Utilities.UnifiedSettings.SettingReadOptions readOptions = Microsoft.VisualStudio.Utilities.UnifiedSettings.SettingReadOptions.RequireValidation);

Type Parameters

T

Parameters

moniker
String

The setting moniker.

value
T

The value of the setting.

readOptions
SettingReadOptions

Flags specifying the conditions required for success.

Returns

true if the value was successfully retrieved, otherwise false.

Applies to