[This is preliminary documentation and is subject to change.]
The Query type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | Query | Initializes a new instance of the Query class |
![]() | Query(Stream) | Initializes a new instance of the Query class |
![]() | Query(String, Boolean, TemplateArg ) |
Creates an instance of the query from JSON template with parameters populated from args optionally caching the template internal
representation. Do not cache templates that change often
|
Methods
Name | Description | |
---|---|---|
![]() | Delete |
Deletes an element by name returning true if it was found and deleted
(Inherited from BSONDocument.) |
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | GetByteSize |
Calculates the BSON binary size of this document expressed in bytes
(Inherited from BSONDocument.) |
![]() | GetEnumerator | (Inherited from BSONDocument.) |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() ![]() | ID_EQ_BYTE_ARRAY | |
![]() ![]() | ID_EQ_GDID | |
![]() ![]() | ID_EQ_Int32(Int32) | |
![]() ![]() | ID_EQ_Int32(Int64) | |
![]() ![]() | ID_EQ_String | |
![]() | IndexOfName |
Returns index of named BSONElement or -1 if it does not exist
(Inherited from BSONDocument.) |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | Set(BSONElement, Int32) |
Inserts BSONElement into document
(Inherited from BSONDocument.) |
![]() | Set(BSONElement, Boolean , Int32) |
Inserts BSONElement into document
(Inherited from BSONDocument.) |
![]() | ToString | (Inherited from BSONDocument.) |
![]() | WriteAsBSON |
Serializes this document into BSON-format stream
(Inherited from BSONDocument.) |
![]() | WriteAsBSONCore | (Inherited from BSONDocument.) |
![]() | WriteAsBSONToNewArray |
Serializes BSON document to byte[]
(Inherited from BSONDocument.) |
![]() | WriteAsJSON |
Serializes this dosument into a TextWriter - this method is used by JSON serializer(JSONWriter)
(Inherited from BSONDocument.) |
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() ![]() | _ID | |
![]() ![]() | PROJECTION_ROOT |
Properties
Name | Description | |
---|---|---|
![]() | ByteSize |
Recalculates the BSON binary size of this document expressed in bytes
(Inherited from BSONDocument.) |
![]() | Count |
Returns the number of BSONElements in this document
(Inherited from BSONDocument.) |
![]() | Item Int32 |
Returns BSONElement by index or null if index is out of bounds
(Inherited from BSONDocument.) |
![]() | Item String |
Returns BSONElement by name or null if not found
(Inherited from BSONDocument.) |
![]() | ProjectionSelector |
Gets/sets projection document which should be embedded in query with '$NFX-QUERY-PROJECTION' see the PROJECTION_ROOT constant
https://docs.mongodb.com/manual/tutorial/project-fields-from-query-results
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | IEnumerable GetEnumerator | (Inherited from BSONDocument.) |
See Also