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

AF SDK Reference

Product Family
Current publication
Table of Contents

PIPointList Methods

PIPointList Methods

The PIPointList type exposes the following members.

Methods

  NameDescription
Public method
Add
This method adds the passed PIPoint to the list and returns the index where the point was added.
Public method
AddRange
This method adds a collection of PIPoint objects to the PIPointList
Public method
Clear
Removes all of the PIPoint instances associated with this PIPointList
Public method
Contains
This method determines whether the collection contains a specific item.
Public method
CopyTo
Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.
Public method
CurrentValue
Returns an AFListResults<TKey, TResult> object containing a list of AFValue objects representing the current value for the PIPoint objects in the list. The order of the AFValue objects in the results list is the same order as the corresponding PIPoint in the PIPointList. Point level error and PIServer level errors can be accessed in the AFListResults<TKey, TResult> error collections.
Public method
EndOfStream
Returns an AFListResults<TKey, TResult> object containing a list of AFValue objects representing the end of stream value for the PIPoint objects in the list. The order of the AFValue objects in the results list is the same order as the corresponding PIPoint in the PIPointList. Point level error and PIServer level errors can be accessed in the AFListResults<TKey, TResult> error collections.
Public method
EndOfStreamAsync
Returns an AFListResults<TKey, TResult> containing a list of AFValue objects corresponding to the end of stream value for the PIPoint objects in the list. The order of the AFValue objects in the return list is the same order as the corresponding PIPoint in the PIPointList.
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodCode example
FilteredSummaries(IList<AFTimeIntervalDefinition>, Boolean, String, AFSummaryTypes, AFCalculationBasis, AFSampleType, AFTimeSpan, AFTimestampCalculation, PIPagingConfiguration)
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 methodCode example
FilteredSummaries(AFTimeRange, AFTimeSpan, String, AFSummaryTypes, AFCalculationBasis, AFSampleType, AFTimeSpan, AFTimestampCalculation, PIPagingConfiguration)
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
GetEnumerator
Returns an enumerator that iterates through the collection.
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetServers
Get a list of the PIServer objects associated with this PIPointList
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
IndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.
Public method
Insert
This method inserts the passed in PIPoint object into the PIPointList at the given zero-based index.
Public method
InterpolatedValue
Returns an AFListResults<TKey, TResult> object containing list of AFValue objects representing the interpolated values for the PIPoint objects in the list for the requested time. The order of the AFValue objects in the results list is the same order as the corresponding PIPoint in the PIPointList. Point level error and PIServer level error can be accessed in the AFListResults<TKey, TResult>
Public method
InterpolatedValueAsync
Returns an AFListResults<TKey, TResult> containing a list of AFValue objects corresponding to the interpolated value for the PIPoint objects in the list for the requested time. The order of the AFValue objects in the return list is the same order as the corresponding PIPoint in the PIPointList.
Public methodCode example
InterpolatedValues
Retrieves interpolated values over the specified time range at the specified sampling interval.
Public methodCode example
InterpolatedValuesAtTimes
Retrieves interpolated values at the specified times.
Public methodCode example
InterpolatedValuesByCount
This method returns the specified number of interpolated values evenly spaced throughout the specified timeRange.
Public method
LoadAttributes
Load PIPoint attributes into the cache for each PIPoint in the list.
Public method
LoadAttributesAsync
Load PIPoint attributes into the cache for each PIPoint in the list.
Public methodCode example
PlotValues
Retrieves values over the specified time range suitable for plotting over the number of intervals (typically represents pixels).
Public method
RecordedValue
Returns an AFListResults<TKey, TResult> containing list of AFValue objects corresponding to the archive value for the PIPoint objects in the list for the requested time and AFRetrievalMode. The order of the AFValue objects in the return list is the same order as the corresponding PIPoint in the PIPointList. Point level error and PIServer level errors can be accessed in the AFListResults<TKey, TResult>
Public method
RecordedValueAsync
Returns an AFListResults<TKey, TResult> containing a list of AFValue objects corresponding to the archive value for the PIPoint objects in the list for the requested time and AFRetrievalMode. The order of the AFValue objects in the return list is the same order as the corresponding PIPoint in the PIPointList.
Public methodCode example
RecordedValues
Returns a list of compressed values for the requested time range from PI.
Public method
RecordedValuesAtTimes
Retrieves recorded values at the specified times.
Public methodCode example
RecordedValuesByCount
This method returns a specified number of compressed values beginning at the requested start time in the direction specified.
Public method
Remove
This method removes all occurrences of the passed PIPoint from the list. The method returns false if the passed PIPoint is not found in the list.
Public method
RemoveAt
This routine removes the PIPoint at the passed index location. It returns true if the same PIPoint is still in the PIPointList at another location. The index is zero-based.
Public method
SaveAttributes
Set the PIPoint attribute values for each PIPoint in the list and save the attribute values to the server.
Public method
Snapshot Obsolete.
Returns an AFListResults<TKey, TResult> object containing a list of AFValue objects representing the snapshot for the PIPoint objects in the list. The order of the AFValue objects in the results list is the same order as the corresponding PIPoint in the PIPointList. Point level error and PIServer level errors can be accessed in the AFListResults<TKey, TResult> error collections.
Public methodCode example
Summaries(IList<AFTimeIntervalDefinition>, Boolean, AFSummaryTypes, AFCalculationBasis, AFTimestampCalculation, PIPagingConfiguration)
Returns several summaries for each specified interval and range for each PIPoint in the list.
Public methodCode example
Summaries(AFTimeRange, AFTimeSpan, AFSummaryTypes, AFCalculationBasis, AFTimestampCalculation, PIPagingConfiguration)
Returns several summaries over a time range for each interval within the range for each PIPoint in the list.
Public methodCode example
Summary
Returns several summaries over a single time range for each PIPoint in the list.
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method
UnloadAllAttributes
Unload all PIPoint attributes from the cache except for the specified names for each PIPoint in the list.
Public method
UnloadAttributes
Unload PIPoint attributes from the cache for each PIPoint in the list.

Extension Methods

  NameDescription
Public Extension MethodCode example
ChunkedBy<PIPoint>
This extension method breaks up search results into chunks to make it easier to page through and process IEnumerable<T> collections in chunks.
(Defined by AFSDKExtension.)

See Also

Was this topic helpful?