Returns the specified variable or any other matching variable in a containing scope.
The variable name.
The context.
Value indicating whether roles and environments should be expanded.
The additional variables.
Value indicating whether system variables should be included in the results.
Value indicating whether legacy variables should be included in the results.
The variable if it was found; otherwise null (Nothing in Visual Basic).