Table of Contents

Method FromBytes

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

FromBytes(byte[], GuidRepresentation)

Converts a byte array to a Guid.

public static Guid FromBytes(byte[] bytes, GuidRepresentation representation)

Parameters

bytes byte[]

The byte array.

representation GuidRepresentation

The representation of the Guid in the byte array.

Returns

Guid

A Guid.