adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / IJobVariableDictionary Interface / Add Method / Add(String) Method
The name of the variable


In This Topic
    Add(String) Method
    In This Topic
    Creates a new Job Variable with the specified key and adds it to the collection
    Syntax
    'Declaration
     
    
    <NotNullAttribute()>
    Overloads Function Add( _
       ByVal Key As String _
    ) As IJobVariable
    [NotNull()]
    IJobVariable Add( 
       string Key
    )
    [NotNull()]
    IJobVariable^ Add( 
       String^ Key
    ) 

    Parameters

    Key
    The name of the variable

    Return Value

    The newly-added JobVariable.
    Exceptions
    ExceptionDescription
    Thrown if the collection already contains a variable with the specified key.
    Remarks

    This method throws an ArgumentException if the collection already contains a variable with the specified key.

    Adding or updating variables in this collection only affects the job instance in which the script is running.

    See Also