M-Files API 23.11.13135.0
SetObjectIDSegmentExpression Method
Expression Object : SetObjectIDSegmentExpression Method
The range of the ID segment.
Description
Set the ObjectIDSegment expression.
Syntax
Visual Basic
Public Sub SetObjectIDSegmentExpression( _
   ByVal Segment As Long _
) 
Parameters
Segment
The range of the ID segment.
Remarks

This expression type can be used to limit the search results by object ID. The value stored in the parent SearchCondition object identifies the ID segment of the searched object. The value returned by this method identifies the segment range (i.e., if the segment range is 1,000 and the expression limits objects to segment 2, only object IDs 2,000-2,999 are returned).

The condition type of the SearchCondition object must be MFConditionTypeEqual, and the data type of the encapsulated TypedValue object must be MFDatatypeInteger.

See Also

Expression Object  | Expression Members