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

Visual Studio 2015
 

Gets the value of a property, or the default if the value is not set.

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

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

Parameters

name
Type: System::String^

The name of the setting.

defaultValue
Type: T

The default value.

Return Value

Type: T

Returns ISettingsSubset.

Type Parameters

T

The type of the setting.

Return to top
Show: