Share via


IWorkspaceSettingsSource.GetProperty<T>(String, T, T) Method

Definition

get a [base] settings value (property), the type and meaning of the value is defined by the caller.

public Microsoft.VisualStudio.Workspace.Settings.WorkspaceSettingsResult GetProperty<T> (string key, out T value, T defaultValue = default);
public Microsoft.VisualStudio.Workspace.Settings.WorkspaceSettingsResult GetProperty<T> (string key, out T? value, T? defaultValue = default);
abstract member GetProperty : string * 'T * 'T -> Microsoft.VisualStudio.Workspace.Settings.WorkspaceSettingsResult
Public Function GetProperty(Of T) (key As String, ByRef value As T, Optional defaultValue As T = Nothing) As WorkspaceSettingsResult

Type Parameters

T

type of the value

Parameters

key
String

the name of the property

value
T

the current value as persisted in the settings

defaultValue
T

optional default value to use if the current value is not present or corrupted

Returns

see WorkspaceSettingsResult

Applies to