Represents a time-series data-point that can be serialized using XmlSerializer, DataContractSerializer or DataContractJsonSerializer.
Declaration Syntax
C# | Visual Basic | Visual C++ |
[DataContractAttribute(Name = "TimeSeriesDataPoint", Namespace = "")] [XmlTypeAttribute("TimeSeriesDataPoint")] public class SerializableTimeSeriesDataPoint
<DataContractAttribute(Name := "TimeSeriesDataPoint", Namespace := "")> _ <XmlTypeAttribute("TimeSeriesDataPoint")> _ Public Class SerializableTimeSeriesDataPoint
[DataContractAttribute(Name = L"TimeSeriesDataPoint", Namespace = L"")] [XmlTypeAttribute(L"TimeSeriesDataPoint")] public ref class SerializableTimeSeriesDataPoint
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
SerializableTimeSeriesDataPoint()()() |
Initializes a new instance of the SerializableTimeSeriesDataPoint class.
| |
SerializableTimeSeriesDataPoint(IDataPoint) |
Initializes a new instance of the SerializableTimeSeriesDataPoint class.
| |
Deflate()()() |
Returns an IDataPoint object for this SerializableTimeSeriesDataPoint.
| |
Equals(Object) | (Inherited from Object.) | |
Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
HistorianID |
Gets or sets the HistorianID.
| |
MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
Quality |
Gets or sets the Quality.
| |
Time | ||
ToString()()() | (Inherited from Object.) | |
Value |
Gets or sets the Value.
|
Examples
This is the output for SerializableTimeSeriesDataPoint serialized using XmlSerializer:
This is the output for SerializableTimeSeriesDataPoint serialized using DataContractSerializer:
This is the output for SerializableTimeSeriesDataPoint serialized using DataContractJsonSerializer:
CopyC#
<?xml version="1.0"?> <TimeSeriesDataPoint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" HistorianID="1" Time="2009-08-21 14:21:23.236" Value="60.0419579" Quality="Good" />
CopyC#
<TimeSeriesDataPoint xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <HistorianID>1</HistorianID> <Time>2009-08-21 14:21:54.612</Time> <Value>60.025547</Value> <Quality>Good</Quality> </TimeSeriesDataPoint>
CopyC#
{ "HistorianID":1, "Time":"2009-08-21 14:22:26.971", "Value":59.9974136, "Quality":29 }
Inheritance Hierarchy
Object | |
SerializableTimeSeriesDataPoint |