A Sandcastle Documented Class Library

# IMultiTenancyService TenantQueryCount Method

Gets the number of tenants corresponding to filter criteria.

Namespace: Dundas.BI.AccountServices.MultiTenancy
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 TenantQueryCount(
    	ICollection<TenantQueryFilterRule> filter
    )

    Function TenantQueryCount (
    	filter As ICollection(Of TenantQueryFilterRule)
    ) As Integer

    int TenantQueryCount(
    	ICollection<TenantQueryFilterRule^>^ filter
    )

    abstract TenantQueryCount :
            filter : ICollection<TenantQueryFilterRule> -> int

#### Parameters

filter
  Type: System.Collections.Generic
  ICollection
  TenantQueryFilterRule
  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 tenants matching the filter criteria.
Exceptions

Exception | Condition
--- | ---
InvalidOperationException | filter contains invalid rule.
NoPrivilegeException | The caller does not have system administration privileges.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IMultiTenancyService Interface
Dundas.BI.AccountServices.MultiTenancy Namespace