Click or drag to resize

UpdateBuilderTDocument Class

A builder for creating update modifiers.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.BuildersBuilderBase
    MongoDB.Driver.BuildersUpdateBuilderTDocument

Namespace:  MongoDB.Driver.Builders
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
[SerializableAttribute]
public class UpdateBuilder<TDocument> : BuilderBase, 
	IMongoUpdate

Type Parameters

TDocument
The type of the document.

The UpdateBuilderTDocument type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAddToSetTValue
Adds a value to a named array element if the value is not already in the array (see $addToSet).
Public methodAddToSetEachTValue
Adds a list of values to a named array element adding each value only if it not already in the array (see $addToSet and $each).
Public methodBitwiseAnd(ExpressionFuncTDocument, Int32, Int32)
Sets the named element to the bitwise and of its value with another value (see $bit with "and").
Public methodBitwiseAnd(ExpressionFuncTDocument, Int64, Int64)
Sets the named element to the bitwise and of its value with another value (see $bit with "and").
Public methodBitwiseOr(ExpressionFuncTDocument, Int32, Int32)
Sets the named element to the bitwise or of its value with another value (see $bit with "or").
Public methodBitwiseOr(ExpressionFuncTDocument, Int64, Int64)
Sets the named element to the bitwise or of its value with another value (see $bit with "or").
Public methodBitwiseXor(ExpressionFuncTDocument, Int32, Int32)
Sets the named element to the bitwise xor of its value with another value (see $bit with "xor").
Public methodBitwiseXor(ExpressionFuncTDocument, Int64, Int64)
Sets the named element to the bitwise xor of its value with another value (see $bit with "xor").
Public methodCombine
Combines another UpdateBuilder into this one.
Public methodCurrentDate(ExpressionFuncTDocument, DateTime)
Sets the value of the named element to the current date (see $currentDate).
Public methodCurrentDate(ExpressionFuncTDocument, BsonDateTime)
Sets the value of the named element to the current date (see $currentDate).
Public methodCurrentDate(ExpressionFuncTDocument, BsonTimestamp)
Sets the value of the named element to the current date (see $currentDate).
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInc(ExpressionFuncTDocument, Double, Double)
Increments the named element by a value (see $inc).
Public methodInc(ExpressionFuncTDocument, Int32, Int32)
Increments the named element by a value (see $inc).
Public methodInc(ExpressionFuncTDocument, Int64, Int64)
Increments the named element by a value (see $inc).
Public methodMaxTMember
Updates the named element if and only if the provided value is greater than its current value (see $max).
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMinTMember
Updates the named element if and only if the provided value is less than its current value (see $max).
Public methodMul(ExpressionFuncTDocument, Double, Double)
Multiplies the named element by a value (see $mul).
Public methodMul(ExpressionFuncTDocument, Int32, Int32)
Multiplies the named element by a value (see $mul).
Public methodMul(ExpressionFuncTDocument, Int64, Int64)
Multiplies the named element by a value (see $mul).
Public methodPopFirstTValue
Removes the first value from the named array element (see $pop).
Public methodPopLastTValue
Removes the last value from the named array element (see $pop).
Public methodPullTValue(ExpressionFuncTDocument, IEnumerableTValue, FuncQueryBuilderTValue, IMongoQuery)
Removes all values from the named array element that match some query (see $pull).
Public methodPullTValue(ExpressionFuncTDocument, IEnumerableTValue, TValue)
Removes all values from the named array element that are equal to some value (see $pull).
Public methodPullAllTValue
Removes all values from the named array element that are equal to any of a list of values (see $pullAll).
Public methodPushTValue
Adds a value to the end of the named array element (see $push).
Public methodPushAllTValue
Adds a list of values to the end of the named array element (see $pushAll).
Public methodPushEachTValue(ExpressionFuncTDocument, IEnumerableTValue, IEnumerableTValue)
Adds a list of values to the end of the named array element (see $push and $each).
Public methodPushEachTValue(ExpressionFuncTDocument, IEnumerableTValue, PushEachOptions, IEnumerableTValue)
Adds a list of values to the end of the named array element (see $push and $each).
Public methodPushEachTValue(ExpressionFuncTDocument, IEnumerableTValue, ActionPushEachOptionsBuilderTValue, IEnumerableTValue)
Adds a list of values to the end of the named array element (see $push and $each).
Public methodSetTMember
Sets the value of the named element to a new value (see $set).
Public methodSetOnInsertTMember
Sets the value of the named element to the specified value only when an insert occurs as part of an upsert operation (see $setOnInsert).
Public methodToBsonDocument
Converts this object to a BsonDocument.
(Overrides BuilderBaseToBsonDocument.)
Public methodToString
Returns a string representation of the settings.
(Inherited from BuilderBase.)
Public methodUnsetTMember
Removes the named element from the document (see $unset).
Top
Extension Methods
  NameDescription
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.)
Top
See Also