StringExtensions.ExpandEnvironmentVariables(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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