IEnvironmentVariables.Item PropertyIEnvironmentVariables.Item PropertyIEnvironmentVariables::Item Property
Gets the value associated with the specified environment variable name.
Parameters
- key
Property Value
Type: System.StringSystem.StringSystem::String^
The value with the specified environment variable name.
Exceptions
| Exception | Condition |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException | key is null
a null reference (Nothing in Visual Basic)
nullptr. |
| KeyNotFoundExceptionKeyNotFoundExceptionKeyNotFoundException | The property is retrieved and key is not found. |
