Class BSONObjectIDElement
Represents a BSON element with an BSONObjectID value
Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: NFX.Serialization.BSON
Assembly: NFX.dll
Syntax
public sealed class BSONObjectIDElement : BSONElement<BSONObjectID>, INamed, IConvertible, IJSONWritable
  Constructors
BSONObjectIDElement(BSONObjectID)
Creates an array element
Declaration
public BSONObjectIDElement(BSONObjectID value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| BSONObjectID | value | 
BSONObjectIDElement(String, BSONObjectID)
Declaration
public BSONObjectIDElement(string name, BSONObjectID value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | |
| BSONObjectID | value | 
Properties
ElementType
Declaration
public override BSONElementType ElementType { get; }
  Property Value
| Type | Description | 
|---|---|
| BSONElementType | 
Overrides
Methods
GetValueByteSize()
Declaration
protected override int GetValueByteSize()
  Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
ReadValueFromStream(Stream)
Declaration
protected override void ReadValueFromStream(Stream stream)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.Stream | stream | 
Overrides
WriteValueToStream(Stream)
Declaration
protected override void WriteValueToStream(Stream stream)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.Stream | stream | 
Overrides
Implements
      System.IConvertible