Share via


WorkspaceSettingsExtensions.TryGetRootedValue Method

Definition

Get a string value with implied root

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryGetRootedValue(Microsoft::VisualStudio::Workspace::Settings::IWorkspaceSettings ^ settings, System::String ^ key, [Runtime::InteropServices::Out] System::String ^ % value, [Runtime::InteropServices::Out] System::String ^ % root);
public static bool TryGetRootedValue (this Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings settings, string key, out string value, out string root);
public static bool TryGetRootedValue (this Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings settings, string key, out string? value, out string? root);
static member TryGetRootedValue : Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings * string * string * string -> bool
<Extension()>
Public Function TryGetRootedValue (settings As IWorkspaceSettings, key As String, ByRef value As String, ByRef root As String) As Boolean

Parameters

settings
IWorkspaceSettings

the settings instance

key
String

the name of the property

value
String

the string value

root
String

the implied root

Returns

true if exist

Applies to