openPDC Historian Help
SerializableTimeSeriesData Class
NamespacesTVA.Historian.DataServicesSerializableTimeSeriesData
Represents a container for SerializableTimeSeriesDataPoints that can be serialized using XmlSerializer or DataContractJsonSerializer.
Declaration Syntax
C#Visual BasicVisual C++
[XmlRootAttribute("TimeSeriesData")]
[DataContractAttribute(Name = "TimeSeriesData", Namespace = "")]
public class SerializableTimeSeriesData
<XmlRootAttribute("TimeSeriesData")> _
<DataContractAttribute(Name := "TimeSeriesData", Namespace := "")> _
Public Class SerializableTimeSeriesData
[XmlRootAttribute(L"TimeSeriesData")]
[DataContractAttribute(Name = L"TimeSeriesData", Namespace = L"")]
public ref class SerializableTimeSeriesData
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
SerializableTimeSeriesData()()()
Initializes a new instance of the SerializableTimeSeriesData class.

SerializableTimeSeriesData(IEnumerable<(Of <(IDataPoint>)>))
Initializes a new instance of the SerializableTimeSeriesData class.

Equals(Object)
Determines whether the specified Object is equal to the current 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.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
TimeSeriesDataPoints
Gets or sets the SerializableTimeSeriesDataPoints contained in the SerializableTimeSeriesData.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Examples
This is the output for SerializableTimeSeriesData serialized using XmlSerializer:
CopyC#
<?xml version="1.0" encoding="utf-8" ?> 
<TimeSeriesData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TimeSeriesDataPoints>
    <TimeSeriesDataPoint HistorianID="1" Time="21-Aug-2009 14:29:52.634" Value="59.9537773" Quality="Good" /> 
    <TimeSeriesDataPoint HistorianID="2" Time="21-Aug-2009 14:29:52.668" Value="60.0351028" Quality="Good" /> 
    <TimeSeriesDataPoint HistorianID="3" Time="21-Aug-2009 14:29:52.702" Value="59.99268" Quality="Good" /> 
    <TimeSeriesDataPoint HistorianID="4" Time="21-Aug-2009 14:29:52.736" Value="59.99003" Quality="Good" /> 
    <TimeSeriesDataPoint HistorianID="5" Time="21-Aug-2009 14:29:52.770" Value="59.9532661" Quality="Good" /> 
  </TimeSeriesDataPoints>
</TimeSeriesData>
This is the output for SerializableTimeSeriesData serialized using DataContractSerializer:
CopyC#
<TimeSeriesData xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <TimeSeriesDataPoints>
    <TimeSeriesDataPoint>
      <HistorianID>1</HistorianID> 
      <Time>21-Aug-2009 14:31:56.176</Time> 
      <Value>60.0272522</Value> 
      <Quality>Good</Quality> 
    </TimeSeriesDataPoint>
    <TimeSeriesDataPoint>
      <HistorianID>2</HistorianID> 
      <Time>21-Aug-2009 14:31:56.210</Time> 
      <Value>60.0283241</Value> 
      <Quality>Good</Quality> 
    </TimeSeriesDataPoint>
    <TimeSeriesDataPoint>
      <HistorianID>3</HistorianID> 
      <Time>21-Aug-2009 14:31:56.244</Time> 
      <Value>60.0418167</Value> 
      <Quality>Good</Quality> 
    </TimeSeriesDataPoint>
    <TimeSeriesDataPoint>
      <HistorianID>4</HistorianID> 
      <Time>21-Aug-2009 14:31:56.278</Time> 
      <Value>60.0049438</Value> 
      <Quality>Good</Quality> 
    </TimeSeriesDataPoint>
    <TimeSeriesDataPoint>
      <HistorianID>5</HistorianID> 
      <Time>21-Aug-2009 14:31:56.312</Time> 
      <Value>59.9982834</Value> 
      <Quality>Good</Quality> 
    </TimeSeriesDataPoint>
  </TimeSeriesDataPoints>
</TimeSeriesData>
This is the output for SerializableTimeSeriesData serialized using DataContractJsonSerializer:
CopyC#
{
  "TimeSeriesDataPoints":
    [{"HistorianID":1,
      "Time":"21-Aug-2009 14:37:04.804",
      "Value":59.9637527,
      "Quality":29},
     {"HistorianID":2,
      "Time":"21-Aug-2009 14:37:04.838",
      "Value":60.0154762,
      "Quality":29},
     {"HistorianID":3,
      "Time":"21-Aug-2009 14:37:04.872",
      "Value":59.977684,
      "Quality":29},
     {"HistorianID":3,
      "Time":"21-Aug-2009 14:37:04.906",
      "Value":59.97335,
      "Quality":29},
     {"HistorianID":5,
      "Time":"21-Aug-2009 14:37:04.940",
      "Value":59.974678,
      "Quality":29}]
}
Inheritance Hierarchy
Object
SerializableTimeSeriesData
See Also

Assembly: TVA.Historian (Module: TVA.Historian) Version: 1.0.33.39252