[This is preliminary documentation and is subject to change.]
Represents a container for SerializableTimeSeriesDataPoints that can be serialized using XmlSerializer or DataContractJsonSerializer.
Declaration Syntax
C# | Visual Basic | Visual C++ |
[DataContractAttribute(Name = "TimeSeriesData")] [XmlRootAttribute("TimeSeriesData")] public class SerializableTimeSeriesData
<DataContractAttribute(Name := "TimeSeriesData")> _ <XmlRootAttribute("TimeSeriesData")> _ Public Class SerializableTimeSeriesData
[DataContractAttribute(Name = L"TimeSeriesData")] [XmlRootAttribute(L"TimeSeriesData")] public ref class SerializableTimeSeriesData
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
SerializableTimeSeriesData()()() |
Initializes a new instance of the SerializableTimeSeriesData class.
| |
SerializableTimeSeriesData(IEnumerable<(Of <(IDataPoint>)>)) |
Initializes a new instance of the SerializableTimeSeriesData class.
| |
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.) | |
MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
TimeSeriesDataPoints |
Gets or sets the SerializableTimeSeriesDataPoints contained in the SerializableTimeSeriesData.
| |
ToString()()() | (Inherited from Object.) |
Examples
This is the output for SerializableTimeSeriesData serialized using XmlSerializer:
This is the output for SerializableTimeSeriesData serialized using DataContractSerializer:
This is the output for SerializableTimeSeriesData serialized using DataContractJsonSerializer:
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>
CopyC#
<TimeSeriesData xmlns="http://schemas.datacontract.org/2004/07/TVA.Historian.Services" 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>
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