Click or drag to resize

ObjectId Class

Represent a 12-bytes BSON type used in document Id
Inheritance Hierarchy
SystemObject
  Internal.LiteDBObjectId

Namespace: Internal.LiteDB
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public class ObjectId : IComparable<ObjectId>, 
	IEquatable<ObjectId>

The ObjectId type exposes the following members.

Constructors
 NameDescription
Public methodObjectId Initializes a new empty instance of the ObjectId class.
Public methodObjectId(ObjectId) Initializes a new instance of ObjectId class from another ObjectId.
Public methodObjectId(String) Initializes a new instance of the ObjectId class from hex string.
Public methodObjectId(Byte, Int32) Initializes a new instance of the ObjectId class from byte array.
Public methodObjectId(Int32, Int32, Int16, Int32) Initializes a new instance of the ObjectId class from ObjectId vars.
Top
Properties
 NameDescription
Public propertyCreationTime Get creation time
Public propertyStatic memberEmpty A zero 12-bytes ObjectId
Public propertyIncrement Get increment
Public propertyMachine Get machine number
Public propertyPid Get pid number
Public propertyTimestamp Get timestamp
Top
Methods
 NameDescription
Public methodCompareTo Compares two instances of ObjectId
Public methodEquals(Object) Determines whether the specified object is equal to this instance.
(Overrides ObjectEquals(Object))
Public methodEquals(ObjectId) Checks if this ObjectId is equal to the given object. Returns true if the given object is equal to the value of this instance. Returns false otherwise.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Returns a hash code for this instance.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberNewObjectId Creates a new ObjectId.
Public methodToByteArray 
Public methodToByteArray(Byte, Int32) Represent ObjectId as 12 bytes array
Public methodToString
(Overrides ObjectToString)
Public methodStatic memberTryParse 
Top
Operators
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also