BuildMaster SDK Reference
Version:

GetVariablesAccessibleFromScope(Inedo.BuildMaster.Extensibility.IGenericBuildMasterContext context, string variableName, bool? expandRolesAndEnvironments, bool? includeSystemVariables, bool includeLegacyVariables) Method

Returns a sequence of all of the variables that are defined in the specified scope, or defined in a scope that logically contains the specified scope.

Syntax

public static IEnumerable<BuildMasterVariable> GetVariablesAccessibleFromScope(Inedo.BuildMaster.Extensibility.IGenericBuildMasterContext context, string variableName, bool? expandRolesAndEnvironments, bool? includeSystemVariables, bool includeLegacyVariables)

Parameters

context
Type: Inedo.BuildMaster.Extensibility.IGenericBuildMasterContext

The context.

variableName
Type: string

The variable name.

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.

includeLegacyVariables
Type: bool

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

Returns

Sequence of all of the variables that are accessible.