Click or drag to resize

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.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
public bool ShouldSendWriteConcern(
	SemanticVersion serverVersion,
	WriteConcern value
)

Parameters

serverVersion
Type: MongoDB.Driver.Core.MiscSemanticVersion
The server version.
value
Type: MongoDB.DriverWriteConcern
The write concern value.

Return Value

Type: Boolean
Whether the write concern should be sent to the server.
See Also