NumberingSchema.SwapNumber
Description:
Replaces an existing number with a another one that exists in the same partition.
Replaces an existing number with a another one that exists in the same partition.
public IList<ElementId> SwapNumber(
string partition,
int firstNumber,
int secondNumber
)
-
StringpartitionName of the partition that identifies the sequence containing the number to be changed.
-
Int32firstNumberNumber to be swapped
-
Int32secondNumberNumber to be swapped
-
The sequence partition does not exist in the schema. -or- The specified sequence does not contain any elements with the given firstNumber. -or- The specified sequence does not contain any elements with the given secondNumber.
-
A non-optional argument was null
-
The value of firstNumber must be in the range from 1 to the maximum value for an Integer type -or- The value of secondNumber must be in the range from 1 to the maximum value for an Integer type
-
Either the schema or its document cannot be modified at present. -or- Can't access the number while an async operation is running.