Click or drag to resize
QueryExtensionsGetCountTInfo Method
Gets the number of items which returns given object query.

Namespace: CMS.DataEngine.Query
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static int GetCount<TInfo>(
	this ObjectQuery<TInfo> objectQuery
)
where TInfo : BaseInfo

Parameters

objectQuery
Type: CMS.DataEngineObjectQueryTInfo
Object query

Type Parameters

TInfo
Info object type

Return Value

Type: Int32
Number of items.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ObjectQueryTInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also