Flags used with the Update method in MongoCollection.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax [FlagsAttribute]
public enum UpdateFlags
<FlagsAttribute>
Public Enumeration UpdateFlags
[<FlagsAttribute>]
type UpdateFlags
Members
| Member name | Value | Description |
---|
| None | 0 |
No flags.
|
| Upsert | 1 |
If document doesn't exist then do an Insert.
|
| Multi | 2 |
Update all matching documents (instead of just one).
|
See Also