Struct BSONObjectID
  
  Represents an ObjectId as a 12-byte BSON type
 
  
  
  
    Inherited Members
    
      System.ValueType.Equals(System.Object)
    
    
      System.ValueType.GetHashCode()
    
    
      System.ValueType.ToString()
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
   
  
  Assembly: NFX.dll
  Syntax
  
    public struct BSONObjectID : IJSONWritable
   
  Constructors
  
  
  
  
  BSONObjectID(GDID)
  
  
  Declaration
  
    public BSONObjectID(GDID gdid)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | GDID | 
        gdid | 
         | 
      
    
  
  
  
  
  BSONObjectID(Byte[])
  
  
  Declaration
  
    public BSONObjectID(byte[] data)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Byte[] | 
        data | 
         | 
      
    
  
  
  
  
  BSONObjectID(Byte[], Int32)
  
  
  Declaration
  
    public BSONObjectID(byte[] data, int startIdx = 0)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Byte[] | 
        data | 
         | 
      
      
        | System.Int32 | 
        startIdx | 
         | 
      
    
  
  
  
  
  BSONObjectID(UInt32, UInt32, UInt16, UInt32)
  
  
  Declaration
  
    public BSONObjectID(uint epochSeconds, uint machineId, ushort processId, uint counter)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.UInt32 | 
        epochSeconds | 
         | 
      
      
        | System.UInt32 | 
        machineId | 
         | 
      
      
        | System.UInt16 | 
        processId | 
         | 
      
      
        | System.UInt32 | 
        counter | 
         | 
      
    
  
  Fields
  
  
  
  Bytes
  
  
  Declaration
  
    public readonly byte[] Bytes
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Byte[] | 
         | 
      
    
  
  Properties
  
  
  
  
  AsGDID
  Interprets BSON/MongoDB object ID as NFX GDID
 
  
  Declaration
  
    public GDID AsGDID { get; }
   
  Property Value
  
  
  
  
  Counter
  
  
  Declaration
  
    public uint Counter { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt32 | 
         | 
      
    
  
  
  
  
  EpochSeconds
  
  
  Declaration
  
    public uint EpochSeconds { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt32 | 
         | 
      
    
  
  
  
  
  MachineID
  
  
  Declaration
  
    public uint MachineID { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt32 | 
         | 
      
    
  
  
  
  
  ProcessID
  
  
  Declaration
  
    public ushort ProcessID { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt16 | 
         | 
      
    
  
  Methods
  
  
  
  
  WriteAsJSON(TextWriter, Int32, JSONWritingOptions)
  
  
  Declaration
  
    public void WriteAsJSON(TextWriter wri, int nestingLevel, JSONWritingOptions options = null)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IO.TextWriter | 
        wri | 
         | 
      
      
        | System.Int32 | 
        nestingLevel | 
         | 
      
      
        | JSONWritingOptions | 
        options | 
         | 
      
    
  
  Implements
  
  Extension Methods