Otter SDK Reference
Version:

GetCascadedVariable(string variableName, int? serverId, int? environmentId, int? serverRoleId, int? jobId, int? hostId, bool? expandRolesAndEnvironments, bool? includeSystemVariables) Method

Returns the specified variable or any other matching variable in a containing scope.

Syntax

public static OtterVariable GetCascadedVariable(string variableName, int? serverId, int? environmentId, int? serverRoleId, int? jobId, int? hostId, bool? expandRolesAndEnvironments, bool? includeSystemVariables)

Parameters

variableName
Type: string

The variable name.

serverId
Type: int?

The server ID.

environmentId
Type: int?

The environment ID.

serverRoleId
Type: int?

The role ID.

jobId
Type: int?

The job ID.

hostId
Type: int?

The host ID.

expandRolesAndEnvironments
Type: bool?

Value indicating whether roles and environments should be expanded.

includeSystemVariables
Type: bool?

Value indicating whether system variables should be included in the results.

Returns

The variable if it was found; otherwise null (Nothing in Visual Basic).

Exceptions

System.ArgumentNullException