Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

PIPoint Class

  • Last UpdatedNov 18, 2025
  • 16 minute read
PIPoint Class
The PIPoint object represents a point on a PIServer.

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.PIPIPoint

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public sealed class PIPoint : IComparable, 
	IComparable<PIPoint>, IEquatable<PIPoint>
Public NotInheritable Class PIPoint
	Implements IComparable, IComparable(Of PIPoint), 
	IEquatable(Of PIPoint)

Dim instance As PIPoint
public ref class PIPoint sealed : IComparable, 
	IComparable<PIPoint^>, IEquatable<PIPoint^>
[<SealedAttribute>]
type PIPoint =  
    class
        interface IComparable
        interface IComparable<PIPoint>
        interface IEquatable<PIPoint>
    end

The PIPoint type exposes the following members.

Properties

  NameDescription
Public property
Future
This property is used to determine if the PIPoint has the ability to store data in the future.
Public property
ID
This property identifies the ID of the PIPoint on the PIServer.
Public property
IsLoadedForDataAccess
This property is used to determine if the PIPoint properties used when reading and writing data have been loaded.
Public property
IsResolved
This property is used to determine if the PIPoint's Name has been resolved.
Public property
Name
This property identifies the name of the PIPoint.
Public property
PointClass
This property identifies the PIPointClass of the PIPoint.
Public property
PointType
This property identifies the PIPointType of the PIPoint.
Public property
Server
The PIServer for this PIPoint.
Public property
Step
The Step attribute for the PIPoint.

Methods

  NameDescription
Public method
CompareTo(Object)
Compares this instance with a specified Object.
Public method
CompareTo(PIPoint)
Compares this instance with a specified PIPoint.
Public method
CurrentValue
Get the value of the PI Point at the current PI Server time.
Public method
EndOfStream
Get the end-of-stream value of the point.
Public method
EndOfStreamAsync
Gets the value recorded for a PI Point with the latest time stamp. This value may be in the future.
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public method
Equals(PIPoint)
Indicates whether the current object is equal to another object of the same type.
Public method
FilteredSummaries(IListAFTimeIntervalDefinition, Boolean, String, AFSummaryTypes, AFCalculationBasis, AFSampleType, AFTimeSpan, AFTimestampCalculation)
This method, when supplied a filter expression that evaluates to true or false, evaluates it over the time range on the passed in intervalDefinitions. For the time ranges where the expression evaluates to true, the method calculates the requested summaries on the PI point.
Public method
FilteredSummaries(AFTimeRange, AFTimeSpan, String, AFSummaryTypes, AFCalculationBasis, AFSampleType, AFTimeSpan, AFTimestampCalculation)
This method, when supplied a filter expression that evaluates to true or false, evaluates it over the passed time range. For the time ranges where the expression evaluates to true, the method calculates the requested summaries on the source attribute.
Public method
FilteredSummariesAsync(IListAFTimeIntervalDefinition, Boolean, String, AFSummaryTypes, AFCalculationBasis, AFSampleType, AFTimeSpan, AFTimestampCalculation, CancellationToken)
This method, when supplied a filter expression that evaluates to true or false, evaluates it over the passed time range. For the time ranges where the expression evaluates to true, the method calculates the requested summaries on the source attribute.
Public method
FilteredSummariesAsync(AFTimeRange, AFTimeSpan, String, AFSummaryTypes, AFCalculationBasis, AFSampleType, AFTimeSpan, AFTimestampCalculation, CancellationToken)
This method, when supplied a filter expression that evaluates to true or false, evaluates it over the passed time range. For the time ranges where the expression evaluates to true, the method calculates the requested summaries on the source attribute.
Public methodCode example
FindAttributeNames
Find the loaded PIPoint attribute names based upon a filter.
Public methodStatic member
FindPIPoint(String)
Returns the PIPoint identified by the path.
Public methodStatic member
FindPIPoint(PIServer, Int32)
Find a PIPoint on the current PIServer using the specified point ID.
Public methodStatic member
FindPIPoint(PIServer, String)
Find a PIPoint on the current PIServer using the specified point name.
Public methodStatic member
FindPIPoints(PIServer, IEnumerablePIPointQuery, IEnumerableString)
Find an enumerable list of PIPoint objects that match the specified query filter conditions.
Public methodStatic member
FindPIPoints(PIServer, IEnumerableInt32, IEnumerableString)
Finds a list of PIPoint objects from the specified point ids.
Public methodStatic member
FindPIPoints(PIServer, IEnumerableString, IEnumerableString)
Find a list of PIPoint objects from a specified list of point names.
Public methodStatic member
FindPIPoints(PIServer, IListIEnumerablePIPointQuery, IEnumerableString)
Find an enumerable list of PIPoint objects that match the specified list of query filter conditions ORed together.
Public methodStatic member
FindPIPoints(PIServer, String, String, IEnumerableString)
Find an enumerable list of PIPoint objects from a point name and point source filter.
Public methodStatic member
FindPIPoints(PIServer, String, Boolean, IEnumerableString, AFSearchTextOption)
Find an enumerable list of PIPoint objects that match the specified query string.
Public methodStatic member
FindPIPointsAsync(PIServer, IEnumerablePIPointQuery, IEnumerableString, CancellationToken)
Find an enumerable list of PIPoint objects that match the specified query filter conditions.
Public methodStatic member
FindPIPointsAsync(PIServer, IEnumerableInt32, IEnumerableString, CancellationToken)
Finds a list of PIPoint objects from the specified point ids.
Public methodStatic member
FindPIPointsAsync(PIServer, IEnumerableString, IEnumerableString, CancellationToken)
Find a list of PIPoint objects from a specified list of point names.
Public methodStatic member
FindPIPointsAsync(PIServer, IListIEnumerablePIPointQuery, IEnumerableString, CancellationToken)
Find an enumerable list of PIPoint objects that match the specified list of query filter conditions ORed together.
Public methodStatic member
FindPIPointsAsync(PIServer, String, String, IEnumerableString, CancellationToken)
Find an enumerable list of PIPoint objects from a point name and point source filter.
Public methodStatic member
FindPIPointsAsync(PIServer, String, Boolean, IEnumerableString, AFSearchTextOption, CancellationToken)
Find an enumerable list of PIPoint objects that match the specified query string.
Public methodStatic member
FindPIPointsByPath
Find a collection of PIPoint objects from a specified list of path names as keyed results. The path name is the key to lookup the PIPoint object in the result.
Public method
GetAnnotation
Gets the annotation associated with a single historical event.
Public methodCode example
GetAttribute
Get the value of a PIPoint attribute by name.
Public methodCode example
GetAttributes
Get the list of PIPoint attribute values by name.
Public method
GetHashCode
Gets the hash code for this instance of the object which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.)
Public method
GetPath
Returns the full path to the PIPoint, using just the names.
Public method
GetPath(AFEncodeType)
Returns the path to the PIPoint using the name and/or id as specified by the encodeType.
Public method
GetStateSet
Gets the AFEnumerationSet for the Digital State Set associated with the PIPoint.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
InterpolatedValue
Returns a single AFValue whose value is interpolated at the passed time.
Public method
InterpolatedValueAsync
Returns a single AFValue whose value is interpolated at the passed time.
Public method
InterpolatedValues
Retrieves interpolated values over the specified time range at the specified sampling interval.
Public method
InterpolatedValuesAsync
Retrieves interpolated values over the specified time range at the specified sampling interval.
Public method
InterpolatedValuesAtTimes
Retrieves interpolated values at the specified times.
Public method
InterpolatedValuesAtTimesAsync
Retrieves interpolated values at the specified times.
Public method
InterpolatedValuesByCount
This method returns the specified number of interpolated values evenly spaced throughout the specified timeRange.
Public method
InterpolatedValuesByCountAsync
This method returns the specified number of interpolated values evenly spaced throughout the specified timeRange.
Public methodCode example
IsAttributeLoaded
Determines whether or not the PIPoint attribute has been loaded into cache.
Public methodCode example
LoadAttributes
Load PIPoint attributes into the cache.
Public method
PlotValues
Retrieves values over the specified time range suitable for plotting over the number of intervals (typically represents pixels).
Public method
PlotValuesAsync
Retrieves values over the specified time range suitable for plotting over the number of intervals (typically represents pixels).
Public method
RecordedValue
Returns a single recorded AFValue based on the passed time and mode.
Public method
RecordedValueAsync
Returns a single recorded AFValue based on the passed time and mode.
Public method
RecordedValues
Returns a list of compressed values for the requested time range from PI.
Public method
RecordedValuesAsync
Returns a list of values for the requested time range from the source provider.
Public method
RecordedValuesAtTimes
Returns recorded values based on the specified times and mode.
Public method
RecordedValuesAtTimesAsync
Returns recorded values based on the specified times and mode.
Public method
RecordedValuesByCount
This method returns a specified number of compressed values beginning at the requested start time in the direction specified.
Public method
RecordedValuesByCountAsync
This method returns a specified number of compressed values beginning at the requested start time in the direction specified.
Public method
ReplaceValues(AFTimeRange, IListAFValue)
This method removes existing data within the specified AFTimeRange and inserts the specified values.
Public method
ReplaceValues(AFTimeRange, IListAFValue, AFBufferOption)
This method removes existing data within the specified AFTimeRange and inserts the specified values.
Public method
ReplaceValuesAsync(AFTimeRange, IListAFValue, CancellationToken)
This method removes existing data within the specified AFTimeRange and inserts the specified values.
Public method
ReplaceValuesAsync(AFTimeRange, IListAFValue, AFBufferOption, CancellationToken)
This method removes existing data within the specified AFTimeRange and inserts the specified values.
Public methodCode example
SaveAttributes(IDictionaryString, Object)
Set the PIPoint cached attribute values and save them to the server.
Public methodCode example
SaveAttributes(String)
Save the PIPoint attribute values in the cache to the server.
Public method
SetAnnotation
Associates the annotation with the passed in value.
Public methodCode example
SetAttribute
Set the value of a PIPoint attribute by name. In order to save the modified value to the server, the following SaveAttributes(String) call should be made.
Public method
Snapshot Obsolete.
Get the snapshot value of the point.
Public method
Summaries(IListAFTimeIntervalDefinition, Boolean, AFSummaryTypes, AFCalculationBasis, AFTimestampCalculation)
Returns several summaries for each specified interval and range.
Public method
Summaries(AFTimeRange, AFTimeSpan, AFSummaryTypes, AFCalculationBasis, AFTimestampCalculation)
Returns several summaries over a time range for each interval within the range.
Public method
SummariesAsync(IListAFTimeIntervalDefinition, Boolean, AFSummaryTypes, AFCalculationBasis, AFTimestampCalculation, CancellationToken)
Returns several summaries for a single PIPoint over a time range for each interval within the range.
Public method
SummariesAsync(AFTimeRange, AFTimeSpan, AFSummaryTypes, AFCalculationBasis, AFTimestampCalculation, CancellationToken)
Returns several summaries for a single PIPoint over a time range for each interval within the range.
Public method
Summary
Returns several summaries over a single time range.
Public method
SummaryAsync
Returns several summaries for a single PIPoint over a single time range.
Public method
ToString
Returns a String that represents the current object.
(Overrides ObjectToString.)
Public methodStatic member
TryFindPIPoint
Find a PIPoint on the current PIServer using the specified point name without throwing an exception.
Public methodCode example
UnloadAllAttributes
Unload all PIPoint attributes from the cache except for the specified names.
Public methodCode example
UnloadAttributes
Unload PIPoint attributes from the cache.
Public method
UpdateValue(AFValue, AFUpdateOption)
This method writes or replaces a value in the PI Data Archive.
Public method
UpdateValue(AFValue, AFUpdateOption, AFBufferOption)
This method writes or replaces a value in the PI Data Archive.
Public method
UpdateValues(IListAFValue, AFUpdateOption)
Update multiple values for the PIPoint.
Public methodCode example
UpdateValues(IListAFValue, AFUpdateOption, AFBufferOption)
Update multiple values for the PIPoint.
Public method
UpdateValuesAsync(IListAFValue, AFUpdateOption, CancellationToken)
This method writes or replaces one or more values on the target system using the configured data reference.
Public method
UpdateValuesAsync(IListAFValue, AFUpdateOption, AFBufferOption, CancellationToken)
This method writes or replaces one or more values on the target system using the configured data reference.

Operators

  NameDescription
Public operatorStatic member
Equality
The equality operator (==) compares its operands to determine if they are equal.
Public operatorStatic member
GreaterThan
The greater than relation operator (>) compares its operands to determine which one is greater than the other.
Public operatorStatic member
GreaterThanOrEqual
The greater than or equal relation operator (>=) compares its operands to determine which one is greater than or equal to the other.
Public operatorStatic member
Inequality
The inequality operator (!=) compares its operands to determine if they are not equal.
Public operatorStatic member
LessThan
The less than relation operator (<) compares its operands to determine which one is less than the other.
Public operatorStatic member
LessThanOrEqual
The less than or equal relation operator (<=) compares its operands to determine which one is less than or equal to the other.

Remarks

The PIPoint is the primary access point to data on a PIServer as well as configuration of a point's properties.

Note Notes to Callers
This method, property, or class is not available in the legacy .NET 3.5 version of the SDK.

Examples

// Get the PIPoint from the PIServer on the local computer
PISystems myPISystems = new PISystems();
PISystem myPISystem = myPISystems.DefaultPISystem;
PIServer myPIServer = PIServer.FindPIServer(myPISystem, piServerName);
PIPoint myPIPoint = PIPoint.FindPIPoint(myPIServer, piPointName);

// Display information about the PIPoint
Console.WriteLine("Name of the PIPoint = {0}", myPIPoint.Name);
Console.WriteLine("ID of the PIPoint = {0}", myPIPoint.ID);
Console.WriteLine("Type of the PIPoint = {0}", myPIPoint.PointType);
Console.WriteLine("PIPoint Current Value = '{0}'", myPIPoint.CurrentValue());
' Get the PIPoint from the PIServer on the local computer
Dim myPISystems As New PISystems
Dim myPISystem As PISystem = myPISystems.DefaultPISystem
Dim myPIServer As PIServer = PIServer.FindPIServer(myPISystem, piServerName)
Dim myPIPoint As PIPoint = PIPoint.FindPIPoint(myPIServer, piPointName)

' Display information about the PIPoint
Console.WriteLine("Name of the PIPoint = {0}", myPIPoint.Name)
Console.WriteLine("ID of the PIPoint = {0}", myPIPoint.ID)
Console.WriteLine("Type of the PIPoint = {0}", myPIPoint.PointType)
Console.WriteLine("PIPoint Current Value = '{0}'", myPIPoint.CurrentValue())

No code example is currently available or this language may not be supported.

No code example is currently available or this language may not be supported.

Version Information

AFSDK


See Also

TitleResults for “How to create a CRG?”Also Available in