GenericRepositoryTQuery Method

Relativity Services API
Queries Relativity to find Artifacts matching the selection criteria.

Namespace:  kCura.Relativity.Client.Repositories
Assembly:  kCura.Relativity.Client (in kCura.Relativity.Client.dll) Version: 17.0.1.1 588f15fd7550dbf54835f3417a0142d4ea37dbb5
Syntax

public QueryResultSet<T> Query(
	Query<T> query,
	int length = 0
)

Parameters

query
Type: kCura.Relativity.Client.DTOsQueryT
The Query object that indicates the query to execute.
length (Optional)
Type: SystemInt32
The maximum number of Artifacts to return. Additional results may be fetched by calling QuerySubset.

Return Value

Type: QueryResultSetT
A set of QueryResult objects that provides the first length number of Artifacts. If more than length search results are available, the QueryResult.QueryToken property will be set.

Implements

IGenericRepositoryTQuery(QueryT, Int32)
Remarks

The length parameter is only taken into account when the ArtifactType queried over is Document, RDO, Relativity Application, or Batch. length is also used when the condition is a ViewCondition. In all other cases, all Artifacts will be returned in a single QueryResultSet without paging.
See Also

Reference