adTempus API
ArcanaDevelopment.adTempus.Client.Collections Namespace / JobVariableCollection Class / Add Method / Add(JobVariable,Boolean,Boolean) Method
The variable to add. The Name must be unique if replaceExisting is false.
Determines whether any existing variable with the same Name should be replaced. If true any existing variable with the same name is replaced. If false and there is an existing variable with the same name, a ArcanaDevelopment.adTempus.Client.DuplicateItemException is thrown.

In This Topic
    Add(JobVariable,Boolean,Boolean) Method
    In This Topic
    Adds a variable to the collection or replaces the existing variable with the same Name.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Add( _
       ByVal newVal As JobVariable, _
       ByVal replaceExisting As Boolean, _
       ByVal checkOverrideRule As Boolean _
    ) 

    Parameters

    newVal
    The variable to add. The Name must be unique if replaceExisting is false.
    replaceExisting
    Determines whether any existing variable with the same Name should be replaced. If true any existing variable with the same name is replaced. If false and there is an existing variable with the same name, a ArcanaDevelopment.adTempus.Client.DuplicateItemException is thrown.
    checkOverrideRule
    Exceptions
    ExceptionDescription
    Thrown if the collection already contains a variable with the same Name and replaceExisting if false.
    See Also