DynamicContextSettings.ContextSize PropertyDynamicContextSettings.ContextSize PropertyDynamicContextSettings::ContextSize Property
- XmlPrime 2.8
- Other Versions ▼
Gets or sets the context size.
Property Value
Type: System.Int64System.Int64System::Int64
A positive longLonglong representing the context size, or 0 if the initial context item is undefined (null
a null reference (Nothing
in Visual Basic)
nullptr
).
Exceptions
Exception | Condition |
ArgumentExceptionArgumentExceptionArgumentException | The value was not a positive longLonglong greater than or equal to ContextPositionContextPositionContextPosition. |
Remarks
The context size is the number of items in the sequence of items currently being processed.
The context size is returned by the expression fn:last()
.
When the initial context item is defined, the value of the context size must be an integer greater than zero.
The default value is 1 when the context item is defined, otherwise 0.