Class WriteConcern.WCount
Represents a numeric WValue.
public sealed class WriteConcern.WCount : WriteConcern.WValue, IEquatable<WriteConcern.WValue>, IEquatable<WriteConcern.WCount>
- Inheritance
-
WriteConcern.WCount
- Implements
- Inherited Members
Constructors
WCount(int)
Initializes a new instance of the WriteConcern.WCount class.
public WCount(int w)
Parameters
w
intThe w value.
Properties
Value
Gets the value.
public int Value { get; }
Property Value
- int
The value.
Methods
Equals(WCount)
public bool Equals(WriteConcern.WCount other)
Parameters
other
WriteConcern.WCount
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()