TaskEnvironment.GetEnvironmentVariable(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.
Gets the value of an environment variable.
public:
System::String ^ GetEnvironmentVariable(System::String ^ name);
public string? GetEnvironmentVariable(string name);
member this.GetEnvironmentVariable : string -> string
Public Function GetEnvironmentVariable (name As String) As String
Parameters
- name
- String
The name of the environment variable.
Returns
The value of the environment variable, or null if it does not exist.