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 | | | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | | Public property | AllowPartialResults | Gets or sets a value indicating whether the server is allowed to return partial results if any shards are unavailable. | | Public property | BatchSize | Gets or sets the size of a batch. | | Public property | Collation | Gets or sets the collation. | | Public property | CollectionNamespace | Gets the collection namespace. | | Public property | Comment | Gets or sets the comment. | | Public property | CursorType | Gets or sets the type of the cursor. | | Public property | Filter | Gets or sets the filter. | | Public property | FirstBatchSize | Gets or sets the size of the first batch. | | Public property | Hint | Gets or sets the hint. | | Public property | Limit | Gets or sets the limit. | | Public property | Max | Gets or sets the max key value. | | Public property | MaxAwaitTime | Gets or sets the maximum await time for TailableAwait cursors. | | Public property | MaxScan | Obsolete. Gets or sets the max scan. | | Public property | MaxTime | Gets or sets the maximum time the server should spend on this operation. | | Public property | MessageEncoderSettings | Gets the message encoder settings. | | Public property | Min | Gets or sets the min key value. | | Public property | Modifiers | Obsolete. Gets or sets any additional query modifiers. | | Public property | NoCursorTimeout | Gets or sets a value indicating whether the server will not timeout the cursor. | | Public property | OplogReplay | Gets or sets a value indicating whether the OplogReplay bit will be set. | | Public property | Projection | Gets or sets the projection. | | Public property | ReadConcern | Gets or sets the read concern. | | Public property | ResultSerializer | Gets the result serializer. | | Public property | RetryRequested | Gets or sets whether or not retry was requested. | | Public property | ReturnKey | Gets or sets whether to only return the key values. | | Public property | ShowRecordId | Gets or sets whether the record Id should be added to the result document. | | Public property | SingleBatch | Gets or sets whether to return only a single batch. | | Public property | Skip | Gets or sets the number of documents skip. | | Public property | Snapshot | Obsolete. Gets or sets whether to use snapshot behavior. | | Public property | Sort | Gets or sets the sort specification. |

Top

Methods

Extension Methods

See Also

Reference