GetProjectVariable() public method

Gets the value of the project variable with the specified name.
public GetProjectVariable ( string name, string locale = null ) : string
name string The name of the variable.
locale string Optional locale to use to select the variable value. If omitted the current will be used
return string
Exemplo n.º 1
0
        internal static string GetVariable(SageContext context, params string[] arguments)
        {
            if (arguments.Length < 1)
                return string.Empty;

            string name = arguments[0];
            string locale = arguments.Length < 2 ? null : arguments[1];

            return context.GetProjectVariable(name, locale);
        }