Share via


SettingValues.TryGetValue Method

Definition

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)

System.Object.TryGetValue(Microsoft.VisualStudio.Extensibility.Settings.SettingIdentifier,Microsoft.VisualStudio.Extensibility.Settings.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

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

key
SettingIdentifier<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