Click or drag to resize

UpdateMessage Constructor

Initializes a new instance of the UpdateMessage class.

Namespace:  MongoDB.Driver.Core.WireProtocol.Messages
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax
public UpdateMessage(
	int requestId,
	CollectionNamespace collectionNamespace,
	BsonDocument query,
	BsonDocument update,
	IElementNameValidator updateValidator,
	bool isMulti,
	bool isUpsert
)

Parameters

requestId
Type: SystemInt32
The request identifier.
collectionNamespace
Type: MongoDB.DriverCollectionNamespace
The collection namespace.
query
Type: MongoDB.BsonBsonDocument
The query.
update
Type: MongoDB.BsonBsonDocument
The update.
updateValidator
Type: MongoDB.Bson.IOIElementNameValidator
The update validator.
isMulti
Type: SystemBoolean
if set to true all matching documents should be updated.
isUpsert
Type: SystemBoolean
if set to true a document should be inserted if no matching document is found.
See Also