openPDC Historian Help
SerializableTimeSeriesDataPoint Class
NamespacesTVA.Historian.DataServicesSerializableTimeSeriesDataPoint
Represents a time-series data-point that can be serialized using XmlSerializer, DataContractSerializer or DataContractJsonSerializer.
Declaration Syntax
C#Visual BasicVisual 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 MembersConstructorsMethodsProperties



IconMemberDescription
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)
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.)
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
Gets or sets the String representation of Time.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Value
Gets or sets the Value.

Examples
This is the output for SerializableTimeSeriesDataPoint serialized using XmlSerializer:
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" />
This is the output for SerializableTimeSeriesDataPoint serialized using DataContractSerializer:
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>
This is the output for SerializableTimeSeriesDataPoint serialized using DataContractJsonSerializer:
CopyC#
{
  "HistorianID":1,
  "Time":"2009-08-21 14:22:26.971",
  "Value":59.9974136,
  "Quality":29
}
Inheritance Hierarchy
Object
SerializableTimeSeriesDataPoint
See Also

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