Table of Contents

Constructor BsonBinaryData

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

BsonBinaryData(byte[])

Initializes a new instance of the BsonBinaryData class.

public BsonBinaryData(byte[] bytes)

Parameters

bytes byte[]

The binary data.

BsonBinaryData(byte[], BsonBinarySubType)

Initializes a new instance of the BsonBinaryData class.

public BsonBinaryData(byte[] bytes, BsonBinarySubType subType)

Parameters

bytes byte[]

The binary data.

subType BsonBinarySubType

The binary data subtype.

BsonBinaryData(byte[], BsonBinarySubType, GuidRepresentation)

Initializes a new instance of the BsonBinaryData class.

[Obsolete("This constructor will be removed in a later release.")]
public BsonBinaryData(byte[] bytes, BsonBinarySubType subType, GuidRepresentation guidRepresentation)

Parameters

bytes byte[]

The binary data.

subType BsonBinarySubType

The binary data subtype.

guidRepresentation GuidRepresentation

The representation for Guids.

BsonBinaryData(Guid)

Initializes a new instance of the BsonBinaryData class.

[Obsolete("Use the constructor that also takes a GuidRepresentation instead.")]
public BsonBinaryData(Guid guid)

Parameters

guid Guid

A Guid.

BsonBinaryData(Guid, GuidRepresentation)

Initializes a new instance of the BsonBinaryData class.

public BsonBinaryData(Guid guid, GuidRepresentation guidRepresentation)

Parameters

guid Guid

A Guid.

guidRepresentation GuidRepresentation

The representation for Guids.