DynamicContextSettings.ContextPosition PropertyDynamicContextSettings.ContextPosition PropertyDynamicContextSettings::ContextPosition Property
- XmlPrime 2.8
- Other Versions ▼
Gets or sets the context position.
Property Value
Type: System.Int64System.Int64System::Int64
A positive longLonglong representing the context position, or 0 if the context item is undefined.
Exceptions
Exception | Condition |
ArgumentExceptionArgumentExceptionArgumentException | The value was not a positive longLonglong less than or equal to ContextSizeContextSizeContextSize. |
Remarks
The context position is the position of the context item within the sequence of items currently being processed. When the context item is defined, the value of the context position is an integer greater than zero. The context position is returned by the expression fn:position(). W.
The default value is 1 when the context item is defined, otherwise 0.