Class BSONDateTimeElement
Represents a BSON element with an UTC DateTime 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: Azos.Serialization.BSON
Assembly: Azos.dll
Syntax
public sealed class BSONDateTimeElement : BSONElement<DateTime>, INamed, IConvertible, IJSONWritable
Constructors
BSONDateTimeElement(DateTime)
Creates an array element
Declaration
public BSONDateTimeElement(DateTime value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value |
BSONDateTimeElement(String, DateTime)
Declaration
public BSONDateTimeElement(string name, DateTime value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | |
System. |
value |
Properties
ElementType
Declaration
public override BSONElementType ElementType { get; }
Property Value
Type | Description |
---|---|
BSONElement |
Overrides
Methods
GetValueByteSize()
Declaration
protected override int GetValueByteSize()
Returns
Type | Description |
---|---|
System. |
Overrides
ReadValueFromStream(Stream)
Declaration
protected override void ReadValueFromStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System. |
stream |
Overrides
WriteAsJSON(TextWriter, Int32, JSONWritingOptions)
Declaration
public override void WriteAsJSON(TextWriter wri, int nestingLevel, JSONWritingOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
wri | |
System. |
nestingLevel | |
JSONWriting |
options |
Overrides
WriteValueToStream(Stream)
Declaration
protected override void WriteValueToStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System. |
stream |
Overrides
Implements
System.IConvertible