Share via


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);
member this.TryGetSettingValue : string * 'T * Microsoft.VisualStudio.Utilities.UnifiedSettings.SettingReadOptions -> bool
Protected Function TryGetSettingValue(Of T) (moniker As String, ByRef value As T, Optional readOptions As SettingReadOptions = Microsoft.VisualStudio.Utilities.UnifiedSettings.SettingReadOptions.RequireValidation) As Boolean

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