[This is preliminary documentation and is subject to change.]
Performs server-side count over cursor
Namespace: NFX.DataAccess.MongoDB.ConnectorAssembly: NFX.MongoDB (in NFX.MongoDB.dll) Version: 3.0.0.1 (3.0.0.1)
public long Count(
Query query = null,
int limit = -1,
int skip = -1,
Object hint = null
)
public long Count(
Query query = null,
int limit = -1,
int skip = -1,
Object hint = null
)
Public Function Count (
Optional query As Query = Nothing,
Optional limit As Integer = -1,
Optional skip As Integer = -1,
Optional hint As Object = Nothing
) As Long
Public Function Count (
Optional query As Query = Nothing,
Optional limit As Integer = -1,
Optional skip As Integer = -1,
Optional hint As Object = Nothing
) As Long
public:
long long Count(
Query^ query = nullptr,
int limit = -1,
int skip = -1,
Object^ hint = nullptr
)
public:
long long Count(
Query^ query = nullptr,
int limit = -1,
int skip = -1,
Object^ hint = nullptr
)
member Count :
?query : Query *
?limit : int *
?skip : int *
?hint : Object
(* Defaults:
let _query = defaultArg query null
let _limit = defaultArg limit -1
let _skip = defaultArg skip -1
let _hint = defaultArg hint null
*)
-> int64
member Count :
?query : Query *
?limit : int *
?skip : int *
?hint : Object
(* Defaults:
let _query = defaultArg query null
let _limit = defaultArg limit -1
let _skip = defaultArg skip -1
let _hint = defaultArg hint null
*)
-> int64
Parameters
- query (Optional)
- Type: NFX.DataAccess.MongoDB.Connector Query
Optional. A query that selects which documents to count in a collection
- limit (Optional)
- Type:
System Int32
Optional. The maximum number of matching documents to return
- skip (Optional)
- Type:
System Int32
Optional. The number of matching documents to skip before returning results
- hint (Optional)
- Type:
System Object
Optional. The index to use. Specify either the index name as a string or the index specification document.
Return Value
Type:
Int64Count