Share via


WorkspaceSettingsExtensions.AbsolutePath Method

Definition

Get a string value representing potentially relative path as full path, using implied root as a base

public static string AbsolutePath (this Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings settings, string key, string defaultValue = default);
public static string? AbsolutePath (this Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings settings, string key, string? defaultValue = default);
static member AbsolutePath : Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings * string * string -> string
<Extension()>
Public Function AbsolutePath (settings As IWorkspaceSettings, key As String, Optional defaultValue As String = Nothing) As String

Parameters

settings
IWorkspaceSettings

the settings instance

key
String

the name of the property

defaultValue
String

default value

Returns

the absolute path

Applies to