Open this page in the API Guide

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 (25.1.0.1000)
Syntax
int TenantQueryCount(
	ICollection<TenantQueryFilterRule>? filter
)

Parameters

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

Return Value

Type: Int32
The number of tenants matching the filter criteria.
Exceptions
ExceptionCondition
InvalidOperationExceptionfilter contains invalid rule.
NoPrivilegeExceptionThe caller belongs to a tenant.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also