Click or drag to resize

BsonElement Methods

The BsonElement type exposes the following members.

Methods
  NameDescription
Public methodClone
Creates a shallow clone of the element (see also DeepClone).
Public methodCompareTo
Compares this BsonElement to another BsonElement.
Public methodDeepClone
Creates a deep clone of the element (see also Clone).
Public methodEquals(Object)
Compares this BsonElement to another object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(BsonElement)
Compares this BsonElement to another BsonElement.
Public methodGetHashCode
Gets the hash code.
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodToString
Returns a string representation of the value.
(Overrides ValueTypeToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also