ObjectIdGenerateNewId Method MongoDB C# Driver API Documentation
Overload List

  NameDescription
Public methodStatic memberGenerateNewId
Generates a new ObjectId with a unique value.
Public methodStatic memberGenerateNewId(DateTime)
Generates a new ObjectId with a unique value (with the timestamp component based on a given DateTime).
Public methodStatic memberGenerateNewId(Int32)
Generates a new ObjectId with a unique value (with the given timestamp).
Top
See Also

Reference