Click or drag to resize

BsonValue Operators and Type Conversions

The BsonValue type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberEquality
Compares two BsonValues.
Public operatorStatic member(BsonValue to Boolean)
Casts a BsonValue to a bool.
Public operatorStatic member(BsonValue to NullableBoolean)
Casts a BsonValue to a bool?.
Public operatorStatic member(BsonValue to Byte)
Casts a BsonValue to a byte[].
Public operatorStatic member(BsonValue to DateTime)
Casts a BsonValue to a DateTime.
Public operatorStatic member(BsonValue to NullableDateTime)
Casts a BsonValue to a DateTime?.
Public operatorStatic member(BsonValue to Decimal)
Casts a BsonValue to a decimal.
Public operatorStatic member(BsonValue to NullableDecimal)
Casts a BsonValue to a decimal?.
Public operatorStatic member(BsonValue to Decimal128)
Casts a BsonValue to a Decimal128.
Public operatorStatic member(BsonValue to NullableDecimal128)
Casts a BsonValue to a nullable Decimal128?.
Public operatorStatic member(BsonValue to Double)
Casts a BsonValue to a double.
Public operatorStatic member(BsonValue to NullableDouble)
Casts a BsonValue to a double?.
Public operatorStatic member(BsonValue to Guid)
Casts a BsonValue to a Guid.
Public operatorStatic member(BsonValue to NullableGuid)
Casts a BsonValue to a Guid?.
Public operatorStatic member(BsonValue to Int32)
Casts a BsonValue to an int.
Public operatorStatic member(BsonValue to NullableInt32)
Casts a BsonValue to an int?.
Public operatorStatic member(BsonValue to Int64)
Casts a BsonValue to a long.
Public operatorStatic member(BsonValue to NullableInt64)
Casts a BsonValue to a long?.
Public operatorStatic member(BsonValue to ObjectId)
Casts a BsonValue to an ObjectId.
Public operatorStatic member(BsonValue to NullableObjectId)
Casts a BsonValue to an ObjectId?.
Public operatorStatic member(BsonValue to Regex)
Casts a BsonValue to a Regex.
Public operatorStatic member(BsonValue to String)
Casts a BsonValue to a string.
Public operatorStatic memberGreaterThan
Compares two BsonValues.
Public operatorStatic memberGreaterThanOrEqual
Compares two BsonValues.
Public operatorStatic member(Boolean to BsonValue)
Converts a bool to a BsonValue.
Public operatorStatic member(Byte to BsonValue)
Converts a byte[] to a BsonValue.
Public operatorStatic member(DateTime to BsonValue)
Converts a DateTime to a BsonValue.
Public operatorStatic member(Decimal to BsonValue)
Converts a decimal to a BsonValue.
Public operatorStatic member(Double to BsonValue)
Converts a double to a BsonValue.
Public operatorStatic member(Enum to BsonValue)
Converts an Enum to a BsonValue.
Public operatorStatic member(Guid to BsonValue)
Converts a Guid to a BsonValue.
Public operatorStatic member(Int32 to BsonValue)
Converts an int to a BsonValue.
Public operatorStatic member(Int64 to BsonValue)
Converts a long to a BsonValue.
Public operatorStatic member(NullableBoolean to BsonValue)
Converts a bool? to a BsonValue.
Public operatorStatic member(NullableDateTime to BsonValue)
Converts a DateTime? to a BsonValue.
Public operatorStatic member(NullableDecimal to BsonValue)
Converts a decimal? to a BsonValue.
Public operatorStatic member(NullableDouble to BsonValue)
Converts a double? to a BsonValue.
Public operatorStatic member(NullableGuid to BsonValue)
Converts a Guid? to a BsonValue.
Public operatorStatic member(NullableInt32 to BsonValue)
Converts an int? to a BsonValue.
Public operatorStatic member(NullableInt64 to BsonValue)
Converts a long? to a BsonValue.
Public operatorStatic member(String to BsonValue)
Converts a string to a BsonValue.
Public operatorStatic member(Regex to BsonValue)
Converts a Regex to a BsonValue.
Public operatorStatic member(Decimal128 to BsonValue)
Converts a Decimal128 to a BsonValue.
Public operatorStatic member(NullableDecimal128 to BsonValue)
Converts a nullable Decimal128 to a BsonValue.
Public operatorStatic member(ObjectId to BsonValue)
Converts an ObjectId to a BsonValue.
Public operatorStatic member(NullableObjectId to BsonValue)
Converts an ObjectId? to a BsonValue.
Public operatorStatic memberInequality
Compares two BsonValues.
Public operatorStatic memberLessThan
Compares two BsonValues.
Public operatorStatic memberLessThanOrEqual
Compares two BsonValues.
Top
See Also