UpdateMessage Constructor (original) (raw)
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.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public UpdateMessage( int requestId, CollectionNamespace collectionNamespace, BsonDocument query, BsonDocument update, IElementNameValidator updateValidator, bool isMulti, bool isUpsert )
Public Sub New ( requestId As Integer, collectionNamespace As CollectionNamespace, query As BsonDocument, update As BsonDocument, updateValidator As IElementNameValidator, isMulti As Boolean, isUpsert As Boolean )
new : requestId : int * collectionNamespace : CollectionNamespace * query : BsonDocument * update : BsonDocument * updateValidator : IElementNameValidator * isMulti : bool * isUpsert : bool -> UpdateMessage
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