SettingsObserver.TryGetSettingValue<T> Method
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.
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
- T
- moniker
- String
The setting moniker.
- value
- T
The value of the setting.
- readOptions
- SettingReadOptions
Flags specifying the conditions required for success.
true
if the value was successfully retrieved, otherwise false
.