Click or drag to resize
IMongoCollectionExtensions Class
Inheritance Hierarchy
SystemObject
  MongoDB.DriverIMongoCollectionExtensions

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntax
public static class IMongoCollectionExtensions

The IMongoCollectionExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAggregateTDocument
Begins a fluent aggregation interface.
Public methodStatic memberAsQueryableTDocument
Creates a queryable source of documents.
Public methodStatic memberCountTDocument
Counts the number of documents in the collection.
Public methodStatic memberCountAsyncTDocument
Counts the number of documents in the collection.
Public methodStatic memberDeleteManyTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, CancellationToken)
Deletes multiple documents.
Public methodStatic memberDeleteManyTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, DeleteOptions, CancellationToken)
Deletes multiple documents.
Public methodStatic memberDeleteManyAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, CancellationToken)
Deletes multiple documents.
Public methodStatic memberDeleteManyAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, DeleteOptions, CancellationToken)
Deletes multiple documents.
Public methodStatic memberDeleteOneTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, CancellationToken)
Deletes a single document.
Public methodStatic memberDeleteOneTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, DeleteOptions, CancellationToken)
Deletes a single document.
Public methodStatic memberDeleteOneAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, CancellationToken)
Deletes a single document.
Public methodStatic memberDeleteOneAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, DeleteOptions, CancellationToken)
Deletes a single document.
Public methodStatic memberDistinctTDocument, TField(IMongoCollectionTDocument, FieldDefinitionTDocument, TField, ExpressionFuncTDocument, Boolean, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctTDocument, TField(IMongoCollectionTDocument, ExpressionFuncTDocument, TField, FilterDefinitionTDocument, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctTDocument, TField(IMongoCollectionTDocument, ExpressionFuncTDocument, TField, ExpressionFuncTDocument, Boolean, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsyncTDocument, TField(IMongoCollectionTDocument, FieldDefinitionTDocument, TField, ExpressionFuncTDocument, Boolean, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsyncTDocument, TField(IMongoCollectionTDocument, ExpressionFuncTDocument, TField, FilterDefinitionTDocument, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsyncTDocument, TField(IMongoCollectionTDocument, ExpressionFuncTDocument, TField, ExpressionFuncTDocument, Boolean, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberFindTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, FindOptions)
Begins a fluent find interface.
Public methodStatic memberFindTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOptions)
Begins a fluent find interface.
Public methodStatic memberFindAsyncTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindOneAndDeleteTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, FindOneAndDeleteOptionsTDocument, TDocument, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOneAndDeleteOptionsTDocument, TDocument, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOneAndDeleteOptionsTDocument, TProjection, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsyncTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, FindOneAndDeleteOptionsTDocument, TDocument, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOneAndDeleteOptionsTDocument, TDocument, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsyncTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOneAndDeleteOptionsTDocument, TProjection, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndReplaceTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, TDocument, FindOneAndReplaceOptionsTDocument, TDocument, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, TDocument, FindOneAndReplaceOptionsTDocument, TDocument, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, TDocument, FindOneAndReplaceOptionsTDocument, TProjection, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsyncTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, TDocument, FindOneAndReplaceOptionsTDocument, TDocument, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, TDocument, FindOneAndReplaceOptionsTDocument, TDocument, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsyncTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, TDocument, FindOneAndReplaceOptionsTDocument, TProjection, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndUpdateTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TDocument, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TDocument, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TProjection, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsyncTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TDocument, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TDocument, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsyncTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TProjection, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindSyncTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindSyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberReplaceOneTDocument
Replaces a single document.
Public methodStatic memberReplaceOneAsyncTDocument
Replaces a single document.
Public methodStatic memberUpdateManyTDocument
Updates many documents.
Public methodStatic memberUpdateManyAsyncTDocument
Updates many documents.
Public methodStatic memberUpdateOneTDocument
Updates a single document.
Public methodStatic memberUpdateOneAsyncTDocument
Updates a single document.
Top
See Also