Collection Count Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Performs server-side count over cursor

Namespace: NFX.DataAccess.MongoDB.Connector
Assembly: NFX.MongoDB (in NFX.MongoDB.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public long Count(
	Query query = null,
	int limit = -1,
	int skip = -1,
	Object hint = null
)

Parameters

query (Optional)
Type: NFX.DataAccess.MongoDB.Connector Query
Optional. A query that selects which documents to count in a collection
limit (Optional)
Type: OnlineSystem Int32
Optional. The maximum number of matching documents to return
skip (Optional)
Type: OnlineSystem Int32
Optional. The number of matching documents to skip before returning results
hint (Optional)
Type: OnlineSystem Object
Optional. The index to use. Specify either the index name as a string or the index specification document.

Return Value

Type: OnlineInt64
Count
See Also