ISettingsList::GetValueOrDefault<T> Method (String^, T)

Visual Studio 2015
 

Returns the value corresponding to the given key. Returns defaultValue if the value is missing or not parseable as T.

Namespace:   Microsoft.VisualStudio.Settings
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

generic<typename T>
T GetValueOrDefault(
	String^ key,
	T defaultValue = null
)

Parameters

key
Type: System::String^

The key.

defaultValue
Type: T

The default value.

Return Value

Type: T

Returns Task.

Type Parameters

T

The type of the value.

Return to top
Show: