A Sandcastle Documented Class Library

# IJobService JobQueryCount Method

Gets the number of jobs corresponding to filter 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

    int JobQueryCount(
    	ICollection<JobQueryFilterRule> filter
    )

    Function JobQueryCount (
    	filter As ICollection(Of JobQueryFilterRule)
    ) As Integer

    int JobQueryCount(
    	ICollection<JobQueryFilterRule^>^ filter
    )

    abstract JobQueryCount :
            filter : ICollection<JobQueryFilterRule> -> int

#### Parameters

filter
  Type: System.Collections.Generic
  ICollection
  JobQueryFilterRule
  The filter rules which should be applied to the query, or
  if the total number of records should be returned.

#### Return Value

Type: Int32
The number of jobs matching the filter criteria.
Exceptions

Exception | Condition
--- | ---
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