Table of Contents

Method Parse

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Parse(string)

Parses a string and creates a new BsonObjectId.

[Obsolete("Use new BsonObjectId(ObjectId.Parse(string s)) instead.")]
public static BsonObjectId Parse(string s)

Parameters

s string

The string value.

Returns

BsonObjectId

A BsonObjectId.