Table of Contents

Class BsonMaxKey

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents the BSON MaxKey value.

[Serializable]
public class BsonMaxKey : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonMaxKey>, IEquatable<BsonMaxKey>
Inheritance
BsonMaxKey
Implements
Inherited Members
Extension Methods

Properties

BsonType

Gets the BsonType of this BsonValue.

public override BsonType BsonType { get; }

Property Value

BsonType

Value

Gets the singleton instance of BsonMaxKey.

public static BsonMaxKey Value { get; }

Property Value

BsonMaxKey

Methods

CompareTo(BsonMaxKey)

Compares this BsonMaxKey to another BsonMaxKey.

public int CompareTo(BsonMaxKey other)

Parameters

other BsonMaxKey

The other BsonMaxKey.

Returns

int

A 32-bit signed integer that indicates whether this BsonMaxKey is less than, equal to, or greather than the other.

CompareTo(BsonValue)

Compares the BsonMaxKey to another BsonValue.

public override int CompareTo(BsonValue other)

Parameters

other BsonValue

The other BsonValue.

Returns

int

A 32-bit signed integer that indicates whether this BsonMaxKey is less than, equal to, or greather than the other BsonValue.

Equals(BsonMaxKey)

Compares this BsonMaxKey to another BsonMaxKey.

public bool Equals(BsonMaxKey rhs)

Parameters

rhs BsonMaxKey

The other BsonMaxKey.

Returns

bool

True if the two BsonMaxKey values are equal.

Equals(object)

Compares this BsonMaxKey to another object.

public override bool Equals(object obj)

Parameters

obj object

The other object.

Returns

bool

True if the other object is a BsonMaxKey and equal to this one.

GetHashCode()

Gets the hash code.

public override int GetHashCode()

Returns

int

The hash code.

ToString()

Returns a string representation of the value.

public override string ToString()

Returns

string

A string representation of the value.

Operators

operator ==(BsonMaxKey, BsonMaxKey)

Compares two BsonMaxKey values.

public static bool operator ==(BsonMaxKey lhs, BsonMaxKey rhs)

Parameters

lhs BsonMaxKey

The first BsonMaxKey.

rhs BsonMaxKey

The other BsonMaxKey.

Returns

bool

True if the two BsonMaxKey values are equal according to ==.

operator !=(BsonMaxKey, BsonMaxKey)

Compares two BsonMaxKey values.

public static bool operator !=(BsonMaxKey lhs, BsonMaxKey rhs)

Parameters

lhs BsonMaxKey

The first BsonMaxKey.

rhs BsonMaxKey

The other BsonMaxKey.

Returns

bool

True if the two BsonMaxKey values are not equal according to ==.