CommandsThatWriteAcceptWriteConcernFeatureShouldSendWriteConcern Method |
Returns true if the write concern value supplied is one that should be sent to the server and the server version supports the commands that write accept write concern feature.
Namespace:
MongoDB.Driver.Core.Misc
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax public bool ShouldSendWriteConcern(
SemanticVersion serverVersion,
WriteConcern value
)
Public Function ShouldSendWriteConcern (
serverVersion As SemanticVersion,
value As WriteConcern
) As Boolean
member ShouldSendWriteConcern :
serverVersion : SemanticVersion *
value : WriteConcern -> bool
Parameters
- serverVersion
- Type: MongoDB.Driver.Core.MiscSemanticVersion
The server version. - value
- Type: MongoDB.DriverWriteConcern
The write concern value.
Return Value
Type:
BooleanWhether the write concern should be sent to the server.
See Also