DynamicContextSettings.ContextSize PropertyDynamicContextSettings.ContextSize PropertyDynamicContextSettings::ContextSize Property

Gets or sets the context size.

Syntax

Public Property ContextSize As Long
        Get
        Set(ByVal value As Long)
public long ContextSize { get; set; }
public:
property long ContextSize {
    long get();
    void set(long value);
}
 

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

ExceptionCondition
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.