Click or drag to resize

UpdateDefinitionTDocument Class

Base class for updates.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverUpdateDefinitionTDocument
    MongoDB.DriverBsonDocumentUpdateDefinitionTDocument
    MongoDB.DriverJsonUpdateDefinitionTDocument
    MongoDB.DriverObjectUpdateDefinitionTDocument
    MongoDB.DriverPipelineUpdateDefinitionTDocument

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public abstract class UpdateDefinition<TDocument>

Type Parameters

TDocument
The type of the document.

The UpdateDefinitionTDocument type exposes the following members.

Constructors
  NameDescription
Protected methodUpdateDefinitionTDocument
Initializes a new instance of the UpdateDefinitionTDocument class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRender(IBsonSerializerTDocument, IBsonSerializerRegistry)
Renders the update to a BsonValue.
Public methodRender(IBsonSerializerTDocument, IBsonSerializerRegistry, LinqProvider)
Renders the update to a BsonValue.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators
  NameDescription
Public operatorStatic member(String to UpdateDefinitionTDocument)
Performs an implicit conversion from String to UpdateDefinitionTDocument.
Public operatorStatic member(BsonDocument to UpdateDefinitionTDocument)
Performs an implicit conversion from BsonDocument to UpdateDefinitionTDocument.
Public operatorStatic member(PipelineDefinitionTDocument, TDocument to UpdateDefinitionTDocument)
Performs an implicit conversion from PipelineDefinitionTInput, TOutput to UpdateDefinitionTDocument.
Top
Extension Methods
  NameDescription
Public Extension MethodAddToSetTDocument, TItem(ExpressionFuncTDocument, IEnumerableTItem, TItem)Overloaded.
Combines an existing update with an add to set operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodAddToSetTDocument, TItem(FieldDefinitionTDocument, TItem)Overloaded.
Combines an existing update with an add to set operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodAddToSetEachTDocument, TItem(ExpressionFuncTDocument, IEnumerableTItem, IEnumerableTItem)Overloaded.
Combines an existing update with an add to set operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodAddToSetEachTDocument, TItem(FieldDefinitionTDocument, IEnumerableTItem)Overloaded.
Combines an existing update with an add to set operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodBitwiseAndTDocument, TField(ExpressionFuncTDocument, TField, TField)Overloaded.
Combines an existing update with a bitwise and operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodBitwiseAndTDocument, TField(FieldDefinitionTDocument, TField, TField)Overloaded.
Combines an existing update with a bitwise and operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodBitwiseOrTDocument, TField(ExpressionFuncTDocument, TField, TField)Overloaded.
Combines an existing update with a bitwise or operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodBitwiseOrTDocument, TField(FieldDefinitionTDocument, TField, TField)Overloaded.
Combines an existing update with a bitwise or operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodBitwiseXorTDocument, TField(ExpressionFuncTDocument, TField, TField)Overloaded.
Combines an existing update with a bitwise xor operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodBitwiseXorTDocument, TField(FieldDefinitionTDocument, TField, TField)Overloaded.
Combines an existing update with a bitwise xor operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodCurrentDateTDocument(ExpressionFuncTDocument, Object, NullableUpdateDefinitionCurrentDateType)Overloaded.
Combines an existing update with a current date operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodCurrentDateTDocument(FieldDefinitionTDocument, NullableUpdateDefinitionCurrentDateType)Overloaded.
Combines an existing update with a current date operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodIncTDocument, TField(ExpressionFuncTDocument, TField, TField)Overloaded.
Combines an existing update with an increment operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodIncTDocument, TField(FieldDefinitionTDocument, TField, TField)Overloaded.
Combines an existing update with an increment operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodMaxTDocument, TField(ExpressionFuncTDocument, TField, TField)Overloaded.
Combines an existing update with a max operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodMaxTDocument, TField(FieldDefinitionTDocument, TField, TField)Overloaded.
Combines an existing update with a max operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodMinTDocument, TField(ExpressionFuncTDocument, TField, TField)Overloaded.
Combines an existing update with a min operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodMinTDocument, TField(FieldDefinitionTDocument, TField, TField)Overloaded.
Combines an existing update with a min operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodMulTDocument, TField(ExpressionFuncTDocument, TField, TField)Overloaded.
Combines an existing update with a multiply operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodMulTDocument, TField(FieldDefinitionTDocument, TField, TField)Overloaded.
Combines an existing update with a multiply operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPopFirstTDocument(ExpressionFuncTDocument, Object)Overloaded.
Combines an existing update with a pop operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPopFirstTDocument(FieldDefinitionTDocument)Overloaded.
Combines an existing update with a pop operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPopLastTDocument(ExpressionFuncTDocument, Object)Overloaded.
Combines an existing update with a pop operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPopLastTDocument(FieldDefinitionTDocument)Overloaded.
Combines an existing update with a pop operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPullTDocument, TItem(ExpressionFuncTDocument, IEnumerableTItem, TItem)Overloaded.
Combines an existing update with a pull operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPullTDocument, TItem(FieldDefinitionTDocument, TItem)Overloaded.
Combines an existing update with a pull operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPullAllTDocument, TItem(ExpressionFuncTDocument, IEnumerableTItem, IEnumerableTItem)Overloaded.
Combines an existing update with a pull operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPullAllTDocument, TItem(FieldDefinitionTDocument, IEnumerableTItem)Overloaded.
Combines an existing update with a pull operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPullFilterTDocument, TItem(ExpressionFuncTDocument, IEnumerableTItem, FilterDefinitionTItem)Overloaded.
Combines an existing update with a pull operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPullFilterTDocument, TItem(ExpressionFuncTDocument, IEnumerableTItem, ExpressionFuncTItem, Boolean)Overloaded.
Combines an existing update with a pull operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPullFilterTDocument, TItem(FieldDefinitionTDocument, FilterDefinitionTItem)Overloaded.
Combines an existing update with a pull operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPushTDocument, TItem(ExpressionFuncTDocument, IEnumerableTItem, TItem)Overloaded.
Combines an existing update with a push operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPushTDocument, TItem(FieldDefinitionTDocument, TItem)Overloaded.
Combines an existing update with a push operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPushEachTDocument, TItem(ExpressionFuncTDocument, IEnumerableTItem, IEnumerableTItem, NullableInt32, NullableInt32, SortDefinitionTItem)Overloaded.
Combines an existing update with a push operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodPushEachTDocument, TItem(FieldDefinitionTDocument, IEnumerableTItem, NullableInt32, NullableInt32, SortDefinitionTItem)Overloaded.
Combines an existing update with a push operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodRenameTDocument(ExpressionFuncTDocument, Object, String)Overloaded.
Combines an existing update with a field renaming operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodRenameTDocument(FieldDefinitionTDocument, String)Overloaded.
Combines an existing update with a field renaming operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodSetTDocument, TField(ExpressionFuncTDocument, TField, TField)Overloaded.
Combines an existing update with a set operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodSetTDocument, TField(FieldDefinitionTDocument, TField, TField)Overloaded.
Combines an existing update with a set operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodSetOnInsertTDocument, TField(ExpressionFuncTDocument, TField, TField)Overloaded.
Combines an existing update with a set on insert operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodSetOnInsertTDocument, TField(FieldDefinitionTDocument, TField, TField)Overloaded.
Combines an existing update with a set on insert operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodUnsetTDocument(ExpressionFuncTDocument, Object)Overloaded.
Combines an existing update with an unset operator.
(Defined by UpdateDefinitionExtensions.)
Public Extension MethodUnsetTDocument(FieldDefinitionTDocument)Overloaded.
Combines an existing update with an unset operator.
(Defined by UpdateDefinitionExtensions.)
Top
See Also