Count any matching object from the space, visible under the specified transaction and modifiers.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
int Count( Object template, ITransaction tx, ReadModifiers modifiers )
Function Count ( _ template As Object, _ tx As ITransaction, _ modifiers As ReadModifiers _ ) As Integer
int Count( Object^ template, ITransaction^ tx, ReadModifiers modifiers )
int Count( Object template, ITransaction tx, ReadModifiers modifiers )
Parameters
- template (Object)
- The template/query used for matching.
- tx (ITransaction)
- The transaction (if any) under which to work.
- modifiers (ReadModifiers)
- The modifier(s) to define behaviour of locks.
Return Value
Number of matching entries.
Exceptions
Exception | Condition |
---|---|
UnusableEntryException | A serialized field of the object being read cannot be deserialized. |
TransactionException | Transaction error occured. |
InactiveSpaceException | The space is in backup mode and therefore is not active. |
SqlQueryException | The query template is an illegal SqlQuery. |