Otter SDK Reference
Version:

GetEnvironmentVariableValue(IRemoteProcessExecuter agent, string name) Method

Returns the value of the specified environment variable.

Syntax

public static string GetEnvironmentVariableValue(IRemoteProcessExecuter agent, string name)

Parameters

agent
Type: IRemoteProcessExecuter

The agent.

name
Type: string

The name of the variable.

Returns

The value of the variable if it is defined; otherwise null (Nothing in Visual Basic).

Exceptions

System.ArgumentNullException

name is null (Nothing in Visual Basic) or empty.