Constructor BsonBinaryData
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
BsonBinarySubTypeThe 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
BsonBinarySubTypeThe binary data subtype.
guidRepresentation
GuidRepresentationThe 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
GuidA Guid.
BsonBinaryData(Guid, GuidRepresentation)
Initializes a new instance of the BsonBinaryData class.
public BsonBinaryData(Guid guid, GuidRepresentation guidRepresentation)
Parameters
guid
GuidA Guid.
guidRepresentation
GuidRepresentationThe representation for Guids.