Expands environment-variable strings and replaces them with their defined values.
[Visual Basic] Public Shared Function ExpandEnvironmentVariables( _ ByVal name As String _ ) As String [C#] public static string ExpandEnvironmentVariables( string name ); [C++] public: static String* ExpandEnvironmentVariables( String* name ); [JScript] public static function ExpandEnvironmentVariables( name : String ) : String;
A string with the environment variable replaced by actual values.
Exception Type | Condition |
---|---|
ArgumentException | The return value is zero. |
ArgumentNullException | name is null. |