GigaSpaces XAP.NET Documentation
Count Method (template, tx)
Class LibraryGigaSpaces.CoreIReadOnlySpaceProxyCount(Object, ITransaction)
Count any matching object from the space, visible under the specified transaction.
Declaration Syntax
C#Visual BasicVisual C++J#
int Count(
	Object template,
	ITransaction tx
)
Function Count ( _
	template As Object, _
	tx As ITransaction _
) As Integer
int Count(
	Object^ template, 
	ITransaction^ tx
)
int Count(
	Object template,
	ITransaction tx
)
Parameters
template (Object)
The template/query used for matching.
tx (ITransaction)
The transaction (if any) under which to work.
Return Value
Number of matching entries.
Exceptions
ExceptionCondition
UnusableEntryExceptionA serialized field of the object being read cannot be deserialized.
TransactionExceptionTransaction error occured.
InactiveSpaceExceptionThe space is in backup mode and therefore is not active.
SqlQueryExceptionThe query template is an illegal SqlQuery.

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 10.1.0.0 (10.1.1.12800)