Table of Contents

Method ToByteArray

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToByteArray()

Converts the BsonObjectId to a byte array.

[Obsolete("Use Value.ToByteArray() instead.")]
public byte[] ToByteArray()

Returns

byte[]

A byte array.