Method ToGuid

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson

Assembly

MongoDB.Bson.dll

ToGuid()

Converts this BsonBinaryData to a Guid.

public Guid ToGuid()

Returns

Guid

A Guid.

ToGuid(GuidRepresentation)

Converts this BsonBinaryData to a Guid.

public Guid ToGuid(GuidRepresentation guidRepresentation)

Parameters

guidRepresentation GuidRepresentation

The representation for Guids.

Returns

Guid

A Guid.