Table of Contents

Class BsonBinaryData

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents BSON binary data.

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

Constructors

BsonBinaryData(byte[])

Initializes a new instance of the BsonBinaryData class.

BsonBinaryData(byte[], BsonBinarySubType)

Initializes a new instance of the BsonBinaryData class.

BsonBinaryData(byte[], BsonBinarySubType, GuidRepresentation)

Initializes a new instance of the BsonBinaryData class.

BsonBinaryData(Guid)

Initializes a new instance of the BsonBinaryData class.

BsonBinaryData(Guid, GuidRepresentation)

Initializes a new instance of the BsonBinaryData class.

Properties

BsonType

Gets the BsonType of this BsonValue.

Bytes

Gets the binary data.

GuidRepresentation

Gets the representation to use when representing the Guid as BSON binary data.

RawValue

Gets the BsonBinaryData as a Guid if the subtype is UuidStandard or UuidLegacy, otherwise null.

SubType

Gets the binary data subtype.

Methods

CompareTo(BsonBinaryData)

Compares this BsonBinaryData to another BsonBinaryData.

CompareTo(BsonValue)

Compares the BsonBinaryData to another BsonValue.

Create(object)

Creates a new BsonBinaryData.

Equals(BsonBinaryData)

Compares this BsonBinaryData to another BsonBinaryData.

Equals(object)

Compares this BsonBinaryData to another object.

GetHashCode()

Gets the hash code.

ToGuid()

Converts this BsonBinaryData to a Guid.

ToGuid(GuidRepresentation)

Converts this BsonBinaryData to a Guid.

ToString()

Returns a string representation of the binary data.

Operators

operator ==(BsonBinaryData, BsonBinaryData)

Compares two BsonBinaryData values.

implicit operator BsonBinaryData(byte[])

Converts a byte array to a BsonBinaryData.

implicit operator BsonBinaryData(Guid)

Converts a Guid to a BsonBinaryData.

operator !=(BsonBinaryData, BsonBinaryData)

Compares two BsonBinaryData values.