BuildCommonUtil.ExpandEnvironmentVariables Method (String)
Expands environment variables which are of the format '$(...)' where the '...' part of the string is any valid combination of letters and numbers. Any patterns recognized as environment variables which do not expand to an existing variable in the current environment are left as-is in the output path.
Namespace: Microsoft.TeamFoundation.Build.Common
Assembly: Microsoft.TeamFoundation.Build.Common (in Microsoft.TeamFoundation.Build.Common.dll)
Syntax
'Declaration
Public Shared Function ExpandEnvironmentVariables ( _
inputValue As String _
) As String
public static string ExpandEnvironmentVariables(
string inputValue
)
public:
static String^ ExpandEnvironmentVariables(
String^ inputValue
)
static member ExpandEnvironmentVariables :
inputValue:string -> string
public static function ExpandEnvironmentVariables(
inputValue : String
) : String
Parameters
inputValue
Type: System.StringThe input string with variables to expand
Return Value
Type: System.String
A string with all environment variables expanded and removed
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.