TaskEnvironment Class
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.
Provides an IMultiThreadableTask with access to a run-time execution environment including environment variables, file paths, and process management capabilities.
public ref class TaskEnvironment sealed
public sealed class TaskEnvironment
type TaskEnvironment = class
Public NotInheritable Class TaskEnvironment
- Inheritance
-
TaskEnvironment
Properties
| Name | Description |
|---|---|
| ProjectDirectory |
Gets or sets the project directory for the task execution. |
Methods
| Name | Description |
|---|---|
| GetAbsolutePath(String) |
Converts a relative or absolute path string to an absolute path. This function resolves paths relative to ProjectDirectory. |
| GetEnvironmentVariable(String) |
Gets the value of an environment variable. |
| GetEnvironmentVariables() |
Gets a dictionary containing all environment variables. |
| GetProcessStartInfo() |
Creates a new ProcessStartInfo configured for the current task execution environment. |
| SetEnvironmentVariable(String, String) |
Sets the value of an environment variable. |