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.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
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