[This is preliminary documentation and is subject to change.]
Represents a time-series data-point that can be serialized using XmlSerializer, DataContractSerializer or DataContractJsonSerializer.
Declaration Syntax
C# | Visual Basic | Visual C++ |
[XmlTypeAttribute("TimeSeriesDataPoint")] [DataContractAttribute(Name = "TimeSeriesDataPoint")] public class SerializableTimeSeriesDataPoint
<XmlTypeAttribute("TimeSeriesDataPoint")> _ <DataContractAttribute(Name := "TimeSeriesDataPoint")> _ Public Class SerializableTimeSeriesDataPoint
[XmlTypeAttribute(L"TimeSeriesDataPoint")] [DataContractAttribute(Name = 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="21-Aug-2009 14:21:23.236" Value="60.0419579" Quality="Good" />
CopyC#
<TimeSeriesDataPoint xmlns="http://schemas.datacontract.org/2004/07/TVA.Historian.Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <HistorianID>1</HistorianID> <Time>21-Aug-2009 14:21:54.612</Time> <Value>60.025547</Value> <Quality>Good</Quality> </TimeSeriesDataPoint>
CopyC#
{ "HistorianID":1, "Time":"21-Aug-2009 14:22:26.971", "Value":59.9974136, "Quality":29 }
Inheritance Hierarchy
Object | |
SerializableTimeSeriesDataPoint |