Table of Contents

Class BsonBinaryData

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents BSON binary data.

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(Guid, GuidRepresentation)

Initializes a new instance of the BsonBinaryData class.

Properties

BsonType

Gets the BsonType of this BsonValue.

Bytes

Gets the binary data.

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.

operator !=(BsonBinaryData, BsonBinaryData)

Compares two BsonBinaryData values.