StringExtensions.ExpandEnvironmentVariables(String) Method

Definition

Replaces %-delimited spans with the matching environment variable values, returning the result. If no matching environment variable is found, the span is replaced by an empty string. "%%" is replaced by a single %.

public static string ExpandEnvironmentVariables (this string s);
static member ExpandEnvironmentVariables : string -> string
<Extension()>
Public Function ExpandEnvironmentVariables (s As String) As String

Parameters

s
String

Returns

Applies to