IEnvironmentVariables.Item PropertyIEnvironmentVariables.Item PropertyIEnvironmentVariables::Item Property

Gets the value associated with the specified environment variable name.

Syntax

ReadOnly Property Item As String (    key As String _
)
        Get
string  this [    string key
] { get; }
property String^ Item {
    String^ get();
}
 

Property Value

Type: System.StringSystem.StringSystem::String^

The value with the specified environment variable name.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionkey is null a null reference (Nothing in Visual Basic) nullptr.
KeyNotFoundExceptionKeyNotFoundExceptionKeyNotFoundException The property is retrieved and key is not found.