Method Parse
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
stringThe string value.
Returns
- BsonObjectId
A BsonObjectId.