C# 클래스 MongoDB.Driver.Core.Misc.CommandsThatWriteAcceptWriteConcernFeature

Represents the commands that write accept write concern concern feature.
상속: MongoDB.Driver.Core.Misc.Feature
파일 보기 프로젝트 열기: craiggwilson/mongo-csharp-driver

공개 메소드들

메소드 설명
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