DynamicContextSettings.ContextPosition PropertyDynamicContextSettings.ContextPosition PropertyDynamicContextSettings::ContextPosition Property

Gets or sets the context position.

Syntax

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

Property Value

Type: System.Int64System.Int64System::Int64

A positive longLonglong representing the context position, or 0 if the context item is undefined.

Exceptions

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