A Sandcastle Documented Class Library

# IJobService JobRunQuery Method

Gets the job runs corresponding to query criteria.

Namespace: Dundas.BI.Scheduling
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    IList<JobRun> JobRunQuery(
    	int pageNumber,
    	int pageSize,
    	IList<Tuple<JobRunQueryField, SortDirection>> orderBy,
    	ICollection<JobRunQueryFilterRule> filter
    )

    Function JobRunQuery (
    	pageNumber As Integer,
    	pageSize As Integer,
    	orderBy As IList(Of Tuple(Of JobRunQueryField, SortDirection)),
    	filter As ICollection(Of JobRunQueryFilterRule)
    ) As IList(Of JobRun)

    IList<JobRun^>^ JobRunQuery(
    	int pageNumber,
    	int pageSize,
    	IList<Tuple<JobRunQueryField, SortDirection>^>^ orderBy,
    	ICollection<JobRunQueryFilterRule^>^ filter
    )

    abstract JobRunQuery :
            pageNumber : int *
            pageSize : int *
            orderBy : IList<Tuple<JobRunQueryField, SortDirection>> *
            filter : ICollection<JobRunQueryFilterRule> -> IList<JobRun>

#### Parameters

pageNumber
  Type: System
  Int32
  The page number, or 0 to indicate that all pages should be returned.
pageSize
  Type: System
  Int32
  The number of results in each page (ignored if pageNumber is 0).
orderBy
  Type: System.Collections.Generic
  IList
  Tuple
  JobRunQueryField, SortDirection
  The sort order of the result, or
  if the order does not matter.
filter
  Type: System.Collections.Generic
  ICollection
  JobRunQueryFilterRule
  The filter rules which should be applied to the query, or
  if no filtering is required.

#### Return Value

Type: IList
JobRun
The collection of JobRuns matching the query criteria which are visible to the caller.
Exceptions

Exception | Condition
--- | ---
ArgumentOutOfRangeException | pageNumber is less than zero; -or- pageSize is less or equal to than zero.
InvalidOperationException | filter contains invalid rule.
NoPrivilegeException | The caller does not have system administration privileges. -or- The caller is associated with a tenant, but does not have administration privileges for that tenant.
InvalidSessionException | The caller context is not associated with a valid session.

Remarks
If the caller is associated with a tenant, the results will be filtered so that only records associated with that tenant are included.
See Also

#### Reference

IJobService Interface
Dundas.BI.Scheduling Namespace