Table of Contents

Method ToBytes

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToBytes(Guid, GuidRepresentation)

Converts a Guid to a byte array.

public static byte[] ToBytes(Guid guid, GuidRepresentation guidRepresentation)

Parameters

guid Guid

The Guid.

guidRepresentation GuidRepresentation

The representation of the Guid in the byte array.

Returns

byte[]

A byte array.