Collapse All Expand All | Language Filter: C#Language Filter: Visual Basic Language Filter: Visual C++ C# Visual Basic Visual C++ | See Also
StreamBase Client API
QueryConfig..::SetTopN Method

Return only the top N results according to the order definition. A continuous query will remove a row when it has added a new row to keep the total result set no larger than N.

Namespace: StreamBase.LiveView.API
Assembly: StreamBase.LiveView.API (in StreamBase.LiveView.API.dll) Version: 10.3.0.4 (10.3.0.4)

# Syntax

| C# |  |  | Visual Basic |  |  | Visual C++ |

    public void SetTopN(
    	OrderDefinition orderdef,
    	int size
    )

    Public Sub SetTopN ( _
    	orderdef As OrderDefinition, _
    	size As Integer _
    )

    public:
    void SetTopN(
    	OrderDefinition^ orderdef,
    	int size
    )

#### Parameters

orderdef
  OrderDefinition
  the ordering to apply to the result set before taking the top N results.

size
  Int32
  the number of rows to include in the result set.

# See Also

QueryConfig Class
StreamBase.LiveView.API Namespace