Parses a string and creates a new ObjectId.

Namespace: MongoDB.Bson
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 1.3.1.4349

Syntax

C#
public static ObjectId Parse(
	string s
)
Visual Basic
Public Shared Function Parse ( _
	s As String _
) As ObjectId
Visual C++
public:
static ObjectId Parse(
	String^ s
)

Parameters

s
Type: System..::..String
The string value.

Return Value

A ObjectId.

See Also