Share via


Sequence.new Method

Initializes a new instance of the Object class.

Syntax

public void new(
    str Name, 
    int Id, 
    int64 InitialValue, 
    int64 MaxValue, 
   [boolean Cycle, 
    int64 CacheSize])

Run On

Server

Parameters

  • Name
    Type: str
    The display name of the sequence.
  • Id
    Type: int
    A positive sequence identifier. The value 0 (zero) and negative values are reserved by Microsoft Dynamics AX.
  • InitialValue
    Type: int64
    The first number to retrieve.
  • MaxValue
    Type: int64
    The last number to retrieve.
  • Cycle
    Type: boolean
    A Boolean value that indicates whether to restart the sequence from the value of the InitialValue parameter when the value of the MaxValue parameter is reached; optional.

See Also

Reference

Sequence Class