C# Класс MongoDB.Driver.Core.Misc.CommandsThatWriteAcceptWriteConcernFeature

Represents the commands that write accept write concern concern feature.
Наследование: MongoDB.Driver.Core.Misc.Feature
Показать файл Открыть проект

Открытые методы

Метод Описание
CommandsThatWriteAcceptWriteConcernFeature ( string name, SemanticVersion firstSupportedVersion )

Initializes a new instance of the CommandsThatWriteAcceptWriteConcernFeature class.

ShouldSendWriteConcern ( SemanticVersion serverVersion, WriteConcern value ) : bool

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.

Описание методов

CommandsThatWriteAcceptWriteConcernFeature() публичный Метод

Initializes a new instance of the CommandsThatWriteAcceptWriteConcernFeature class.
public CommandsThatWriteAcceptWriteConcernFeature ( string name, SemanticVersion firstSupportedVersion )
name string The name of the feature.
firstSupportedVersion SemanticVersion The first server version that supports the feature.

ShouldSendWriteConcern() публичный Метод

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.
public ShouldSendWriteConcern ( SemanticVersion serverVersion, WriteConcern value ) : bool
serverVersion SemanticVersion The server version.
value WriteConcern The write concern value.
Результат bool