SettingValues.TryGetValue 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.
Overloads
TryGetValue(SettingIdentifier, ISettingValue) | |
TryGetValue<T>(Setting<T>, SettingValue<T>) |
Gets the value that is associated with the specified key. |
TryGetValue<T>(SettingIdentifier<T>, SettingValue<T>) |
Gets the value that is associated with the specified key. |
TryGetValue(SettingIdentifier, ISettingValue)
public bool TryGetValue (Microsoft.VisualStudio.Extensibility.Settings.SettingIdentifier key, out Microsoft.VisualStudio.Extensibility.Settings.ISettingValue value);
abstract member TryGetValue : Microsoft.VisualStudio.Extensibility.Settings.SettingIdentifier * ISettingValue -> bool
override this.TryGetValue : Microsoft.VisualStudio.Extensibility.Settings.SettingIdentifier * ISettingValue -> bool
Public Function TryGetValue (key As SettingIdentifier, ByRef value As ISettingValue) As Boolean
Parameters
- value
- ISettingValue
Returns
Applies to
TryGetValue<T>(Setting<T>, SettingValue<T>)
Gets the value that is associated with the specified key.
public bool TryGetValue<T> (Microsoft.VisualStudio.Extensibility.Settings.Setting<T> key, out Microsoft.VisualStudio.Extensibility.Settings.SettingValue<T> value);
member this.TryGetValue : Microsoft.VisualStudio.Extensibility.Settings.Setting<'T> * SettingValue -> bool
Public Function TryGetValue(Of T) (key As Setting(Of T), ByRef value As SettingValue(Of T)) As Boolean
Type Parameters
- T
The type of the setting value.
Parameters
- key
- Setting<T>
The key to locate.
- value
- SettingValue<T>
When this method returns, the value associated with the specified key, if the key is found; otherwise,
null
.
Returns
true
true if the read-only dictionary contains an element that has the specified key; otherwise,
false
.
Applies to
TryGetValue<T>(SettingIdentifier<T>, SettingValue<T>)
Gets the value that is associated with the specified key.
public bool TryGetValue<T> (Microsoft.VisualStudio.Extensibility.Settings.SettingIdentifier<T> key, out Microsoft.VisualStudio.Extensibility.Settings.SettingValue<T> value);
member this.TryGetValue : Microsoft.VisualStudio.Extensibility.Settings.SettingIdentifier<'T> * SettingValue -> bool
Public Function TryGetValue(Of T) (key As SettingIdentifier(Of T), ByRef value As SettingValue(Of T)) As Boolean
Type Parameters
- T
The type of the setting value.
Parameters
The key to locate.
- value
- SettingValue<T>
When this method returns, the value associated with the specified key, if the key is found; otherwise,
null
.
Returns
true
true if the read-only dictionary contains an element that has the specified key; otherwise,
false
.