Click or drag to resize
BsonValue Properties

The BsonValue type exposes the following members.

Properties
  NameDescription
Public propertyAsBoolean
Casts the BsonValue to a Boolean (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonArray
Casts the BsonValue to a BsonArray (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonBinaryData
Casts the BsonValue to a BsonBinaryData (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonDateTime
Casts the BsonValue to a BsonDateTime (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonDocument
Casts the BsonValue to a BsonDocument (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonJavaScript
Casts the BsonValue to a BsonJavaScript (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonJavaScriptWithScope
Casts the BsonValue to a BsonJavaScriptWithScope (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonMaxKey
Casts the BsonValue to a BsonMaxKey (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonMinKey
Casts the BsonValue to a BsonMinKey (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonNull
Casts the BsonValue to a BsonNull (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonRegularExpression
Casts the BsonValue to a BsonRegularExpression (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonSymbol
Casts the BsonValue to a BsonSymbol (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonTimestamp
Casts the BsonValue to a BsonTimestamp (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonUndefined
Casts the BsonValue to a BsonUndefined (throws an InvalidCastException if the cast is not valid).
Public propertyAsBsonValue
Casts the BsonValue to a BsonValue (a way of upcasting subclasses of BsonValue to BsonValue at compile time).
Public propertyAsByteArray
Casts the BsonValue to a Byte[] (throws an InvalidCastException if the cast is not valid).
Public propertyAsDateTime Obsolete.
Casts the BsonValue to a DateTime in UTC (throws an InvalidCastException if the cast is not valid).
Public propertyAsDouble
Casts the BsonValue to a Double (throws an InvalidCastException if the cast is not valid).
Public propertyAsGuid
Casts the BsonValue to a Guid (throws an InvalidCastException if the cast is not valid).
Public propertyAsInt32
Casts the BsonValue to an Int32 (throws an InvalidCastException if the cast is not valid).
Public propertyAsInt64
Casts the BsonValue to a Int64 (throws an InvalidCastException if the cast is not valid).
Public propertyAsLocalTime Obsolete.
Casts the BsonValue to a DateTime in the local timezone (throws an InvalidCastException if the cast is not valid).
Public propertyAsNullableBoolean
Casts the BsonValue to a Nullable{Boolean} (throws an InvalidCastException if the cast is not valid).
Public propertyAsNullableDateTime Obsolete.
Casts the BsonValue to a Nullable{DateTime} (throws an InvalidCastException if the cast is not valid).
Public propertyAsNullableDouble
Casts the BsonValue to a Nullable{Double} (throws an InvalidCastException if the cast is not valid).
Public propertyAsNullableGuid
Casts the BsonValue to a Nullable{Guid} (throws an InvalidCastException if the cast is not valid).
Public propertyAsNullableInt32
Casts the BsonValue to a Nullable{Int32} (throws an InvalidCastException if the cast is not valid).
Public propertyAsNullableInt64
Casts the BsonValue to a Nullable{Int64} (throws an InvalidCastException if the cast is not valid).
Public propertyAsNullableObjectId
Casts the BsonValue to a Nullable{ObjectId} (throws an InvalidCastException if the cast is not valid).
Public propertyAsObjectId
Casts the BsonValue to an ObjectId (throws an InvalidCastException if the cast is not valid).
Public propertyAsRegex
Casts the BsonValue to a Regex (throws an InvalidCastException if the cast is not valid).
Public propertyAsString
Casts the BsonValue to a String (throws an InvalidCastException if the cast is not valid).
Public propertyAsUniversalTime Obsolete.
Casts the BsonValue to a DateTime in UTC (throws an InvalidCastException if the cast is not valid).
Public propertyBsonType
Gets the BsonType of this BsonValue.
Public propertyIsBoolean
Tests whether this BsonValue is a Boolean.
Public propertyIsBsonArray
Tests whether this BsonValue is a BsonArray.
Public propertyIsBsonBinaryData
Tests whether this BsonValue is a BsonBinaryData.
Public propertyIsBsonDateTime
Tests whether this BsonValue is a BsonDateTime.
Public propertyIsBsonDocument
Tests whether this BsonValue is a BsonDocument.
Public propertyIsBsonJavaScript
Tests whether this BsonValue is a BsonJavaScript.
Public propertyIsBsonJavaScriptWithScope
Tests whether this BsonValue is a BsonJavaScriptWithScope.
Public propertyIsBsonMaxKey
Tests whether this BsonValue is a BsonMaxKey.
Public propertyIsBsonMinKey
Tests whether this BsonValue is a BsonMinKey.
Public propertyIsBsonNull
Tests whether this BsonValue is a BsonNull.
Public propertyIsBsonRegularExpression
Tests whether this BsonValue is a BsonRegularExpression.
Public propertyIsBsonSymbol
Tests whether this BsonValue is a BsonSymbol .
Public propertyIsBsonTimestamp
Tests whether this BsonValue is a BsonTimestamp.
Public propertyIsBsonUndefined
Tests whether this BsonValue is a BsonUndefined.
Public propertyIsDateTime Obsolete.
Tests whether this BsonValue is a DateTime.
Public propertyIsDouble
Tests whether this BsonValue is a Double.
Public propertyIsGuid
Tests whether this BsonValue is a Guid.
Public propertyIsInt32
Tests whether this BsonValue is an Int32.
Public propertyIsInt64
Tests whether this BsonValue is an Int64.
Public propertyIsNumeric
Tests whether this BsonValue is a numeric value.
Public propertyIsObjectId
Tests whether this BsonValue is an ObjectId .
Public propertyIsString
Tests whether this BsonValue is a String.
Public propertyIsValidDateTime
Tests whether this BsonValue is a valid DateTime.
Public propertyItemInt32
Gets or sets a value by position (only applies to BsonDocument and BsonArray).
Public propertyItemString
Gets or sets a value by name (only applies to BsonDocument).
Public propertyRawValue Obsolete.
Gets the raw value of this BsonValue (or null if this BsonValue doesn't have a single scalar value).
Top
See Also