Click or drag to resize

IMongoCollectionExtensions Class

Inheritance Hierarchy
SystemObject
  MongoDB.DriverIMongoCollectionExtensions

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

The IMongoCollectionExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAggregateTDocument(IMongoCollectionTDocument, AggregateOptions)
Begins a fluent aggregation interface.
Public methodStatic memberAggregateTDocument(IMongoCollectionTDocument, IClientSessionHandle, AggregateOptions)
Begins a fluent aggregation interface.
Public methodStatic memberAsQueryableTDocument
Creates a queryable source of documents.
Public methodStatic memberCountTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, CountOptions, CancellationToken) Obsolete.
Counts the number of documents in the collection.
Public methodStatic memberCountTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, CountOptions, CancellationToken) Obsolete.
Counts the number of documents in the collection.
Public methodStatic memberCountAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, CountOptions, CancellationToken) Obsolete.
Counts the number of documents in the collection.
Public methodStatic memberCountAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, CountOptions, CancellationToken) Obsolete.
Counts the number of documents in the collection.
Public methodStatic memberCountDocumentsTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, CountOptions, CancellationToken)
Counts the number of documents in the collection.
Public methodStatic memberCountDocumentsTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, CountOptions, CancellationToken)
Counts the number of documents in the collection.
Public methodStatic memberCountDocumentsAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, CountOptions, CancellationToken)
Counts the number of documents in the collection.
Public methodStatic memberCountDocumentsAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, CountOptions, CancellationToken)
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 memberDeleteManyTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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 memberDeleteManyAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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 memberDeleteOneTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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 memberDeleteOneAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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 memberDistinctTDocument, TField(IMongoCollectionTDocument, IClientSessionHandle, FieldDefinitionTDocument, TField, ExpressionFuncTDocument, Boolean, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctTDocument, TField(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, TField, FilterDefinitionTDocument, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctTDocument, TField(IMongoCollectionTDocument, IClientSessionHandle, 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 memberDistinctAsyncTDocument, TField(IMongoCollectionTDocument, IClientSessionHandle, FieldDefinitionTDocument, TField, ExpressionFuncTDocument, Boolean, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsyncTDocument, TField(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, TField, FilterDefinitionTDocument, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsyncTDocument, TField(IMongoCollectionTDocument, IClientSessionHandle, 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 memberFindTDocument(IMongoCollectionTDocument, IClientSessionHandle, FilterDefinitionTDocument, FindOptions)
Begins a fluent find interface.
Public methodStatic memberFindTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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 memberFindAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, FilterDefinitionTDocument, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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(IMongoCollectionTDocument, IClientSessionHandle, FilterDefinitionTDocument, FindOneAndDeleteOptionsTDocument, TDocument, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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 memberFindOneAndDeleteTDocument, TProjection(IMongoCollectionTDocument, IClientSessionHandle, 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(IMongoCollectionTDocument, IClientSessionHandle, FilterDefinitionTDocument, FindOneAndDeleteOptionsTDocument, TDocument, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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 memberFindOneAndDeleteAsyncTDocument, TProjection(IMongoCollectionTDocument, IClientSessionHandle, 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(IMongoCollectionTDocument, IClientSessionHandle, FilterDefinitionTDocument, TDocument, FindOneAndReplaceOptionsTDocument, TDocument, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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 memberFindOneAndReplaceTDocument, TProjection(IMongoCollectionTDocument, IClientSessionHandle, 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(IMongoCollectionTDocument, IClientSessionHandle, FilterDefinitionTDocument, TDocument, FindOneAndReplaceOptionsTDocument, TDocument, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, IClientSessionHandle, 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 memberFindOneAndReplaceAsyncTDocument, TProjection(IMongoCollectionTDocument, IClientSessionHandle, 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(IMongoCollectionTDocument, IClientSessionHandle, FilterDefinitionTDocument, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TDocument, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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 memberFindOneAndUpdateTDocument, TProjection(IMongoCollectionTDocument, IClientSessionHandle, 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(IMongoCollectionTDocument, IClientSessionHandle, FilterDefinitionTDocument, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TDocument, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, 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 memberFindOneAndUpdateAsyncTDocument, TProjection(IMongoCollectionTDocument, IClientSessionHandle, 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 memberFindSyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, FilterDefinitionTDocument, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindSyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberReplaceOneTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, TDocument, UpdateOptions, CancellationToken)
Replaces a single document.
Public methodStatic memberReplaceOneTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, TDocument, UpdateOptions, CancellationToken)
Replaces a single document.
Public methodStatic memberReplaceOneAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, TDocument, UpdateOptions, CancellationToken)
Replaces a single document.
Public methodStatic memberReplaceOneAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, TDocument, UpdateOptions, CancellationToken)
Replaces a single document.
Public methodStatic memberUpdateManyTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, UpdateOptions, CancellationToken)
Updates many documents.
Public methodStatic memberUpdateManyTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, UpdateOptions, CancellationToken)
Updates many documents.
Public methodStatic memberUpdateManyAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, UpdateOptions, CancellationToken)
Updates many documents.
Public methodStatic memberUpdateManyAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, UpdateOptions, CancellationToken)
Updates many documents.
Public methodStatic memberUpdateOneTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, UpdateOptions, CancellationToken)
Updates a single document.
Public methodStatic memberUpdateOneTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, UpdateOptions, CancellationToken)
Updates a single document.
Public methodStatic memberUpdateOneAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, UpdateOptions, CancellationToken)
Updates a single document.
Public methodStatic memberUpdateOneAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, UpdateOptions, CancellationToken)
Updates a single document.
Public methodStatic memberWatchTDocument(IMongoCollectionTDocument, ChangeStreamOptions, CancellationToken)
Watches changes on the collection.
Public methodStatic memberWatchTDocument(IMongoCollectionTDocument, IClientSessionHandle, ChangeStreamOptions, CancellationToken)
Watches changes on the collection.
Public methodStatic memberWatchAsyncTDocument(IMongoCollectionTDocument, ChangeStreamOptions, CancellationToken)
Watches changes on the collection.
Public methodStatic memberWatchAsyncTDocument(IMongoCollectionTDocument, IClientSessionHandle, ChangeStreamOptions, CancellationToken)
Watches changes on the collection.
Top
See Also