Table of Contents

Method ToByteArray

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToByteArray()

Converts the ObjectId to a byte array.

public byte[] ToByteArray()

Returns

byte[]

A byte array.

ToByteArray(byte[], int)

Converts the ObjectId to a byte array.

public void ToByteArray(byte[] destination, int offset)

Parameters

destination byte[]

The destination.

offset int

The offset.