FindOperation(TDocument) Class (original) (raw)
FindOperationTDocument Class
Represents a Find operation.
Inheritance Hierarchy
SystemObject
MongoDB.Driver.Core.OperationsFindOperationTDocument
Namespace: MongoDB.Driver.Core.Operations
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public class FindOperation : IReadOperation<IAsyncCursor>, IExecutableInRetryableReadContext<IAsyncCursor>
Public Class FindOperation(Of TDocument) Implements IReadOperation(Of IAsyncCursor(Of TDocument)), IExecutableInRetryableReadContext(Of IAsyncCursor(Of TDocument))
type FindOperation<'TDocument> =
class
interface IReadOperation<IAsyncCursor<'TDocument>>
interface IExecutableInRetryableReadContext<IAsyncCursor<'TDocument>>
end
Type Parameters
TDocument
The type of the returned documents.
The FindOperationTDocument type exposes the following members.
Constructors
Properties
| | Name | Description | |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| | AllowPartialResults | Gets or sets a value indicating whether the server is allowed to return partial results if any shards are unavailable. |
|
| BatchSize | Gets or sets the size of a batch. |
|
| Collation | Gets or sets the collation. |
|
| CollectionNamespace | Gets the collection namespace. |
|
| Comment | Gets or sets the comment. |
|
| CursorType | Gets or sets the type of the cursor. |
|
| Filter | Gets or sets the filter. |
|
| FirstBatchSize | Gets or sets the size of the first batch. |
|
| Hint | Gets or sets the hint. |
|
| Limit | Gets or sets the limit. |
|
| Max | Gets or sets the max key value. |
|
| MaxAwaitTime | Gets or sets the maximum await time for TailableAwait cursors. |
|
| MaxScan | Obsolete. Gets or sets the max scan. |
|
| MaxTime | Gets or sets the maximum time the server should spend on this operation. |
|
| MessageEncoderSettings | Gets the message encoder settings. |
|
| Min | Gets or sets the min key value. |
|
| Modifiers | Obsolete. Gets or sets any additional query modifiers. |
|
| NoCursorTimeout | Gets or sets a value indicating whether the server will not timeout the cursor. |
|
| OplogReplay | Gets or sets a value indicating whether the OplogReplay bit will be set. |
|
| Projection | Gets or sets the projection. |
|
| ReadConcern | Gets or sets the read concern. |
|
| ResultSerializer | Gets the result serializer. |
|
| RetryRequested | Gets or sets whether or not retry was requested. |
|
| ReturnKey | Gets or sets whether to only return the key values. |
|
| ShowRecordId | Gets or sets whether the record Id should be added to the result document. |
|
| SingleBatch | Gets or sets whether to return only a single batch. |
|
| Skip | Gets or sets the number of documents skip. |
|
| Snapshot | Obsolete. Gets or sets whether to use snapshot behavior. |
|
| Sort | Gets or sets the sort specification. |
Methods
Extension Methods
See Also