UpdateMessage Constructor |
Namespace: MongoDB.Driver.Core.WireProtocol.MessagesAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.3.0
Syntaxpublic 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