Class WriteConcern.WMode
Represents a mode string WValue.
public sealed class WriteConcern.WMode : WriteConcern.WValue, IEquatable<WriteConcern.WValue>, IEquatable<WriteConcern.WMode>
- Inheritance
-
WriteConcern.WMode
- Implements
- Inherited Members
Constructors
WMode(string)
Initializes a new instance of the WriteConcern.WMode class.
public WMode(string mode)
Parameters
mode
stringThe mode.
Properties
Majority
Gets an instance of WValue that represents the majority mode.
public static WriteConcern.WMode Majority { get; }
Property Value
- WriteConcern.WMode
An instance of WValue that represents the majority mode.
Value
Gets the value.
public string Value { get; }
Property Value
- string
The value.
Methods
Equals(WMode)
public bool Equals(WriteConcern.WMode other)
Parameters
other
WriteConcern.WMode
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToBsonValue()
Converts this WValue to a BsonValue suitable to be included in a BsonDocument representing a write concern.
public override BsonValue ToBsonValue()
Returns
- BsonValue
A BsonValue.
ToString()
public override string ToString()