PIPointSource Class
- Last UpdatedNov 18, 2025
- 5 minute read
- PI System
- AF SDK 2024 R2
- Developer
The PIPointSource object represents a point source on a PIServer.

Inheritance Hierarchy
SystemObject
OSIsoft.AF.PIPIPointSource
OSIsoft.AF.PIPIPointSource
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public sealed class PIPointSource : IComparable, IComparable<PIPointSource>, IEquatable<PIPointSource>
Public NotInheritable Class PIPointSource Implements IComparable, IComparable(Of PIPointSource), IEquatable(Of PIPointSource) Dim instance As PIPointSource
public ref class PIPointSource sealed : IComparable, IComparable<PIPointSource^>, IEquatable<PIPointSource^>
[<SealedAttribute>] type PIPointSource = class interface IComparable interface IComparable<PIPointSource> interface IEquatable<PIPointSource> end
The PIPointSource type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| Description |
This property identifies the Description of the PIPointSource.
| |
| Name |
This property identifies the name of the PIPointSource.
| |
| PointCount |
The point count associated with the PIPointSource.
| |
| Server |
The PIServer for this PIPointSource.
|
Methods
| Name | Description | |
|---|---|---|
| CompareTo(Object) |
Compares this instance with a specified Object.
| |
| CompareTo(PIPointSource) |
Compares this instance with a specified PIPointSource.
| |
| Equals(Object) |
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).) | |
| Equals(PIPointSource) |
Indicates whether the current object is equal to another object of the same type.
| |
| 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.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString |
Returns a String that represents the current object.
(Overrides ObjectToString.) |
Operators
| Name | Description | |
|---|---|---|
| Equality |
The equality operator (==) compares its operands to determine if they are equal.
| |
| GreaterThan |
The greater than relation operator (>) compares its operands to determine
which one is greater than the other.
| |
| GreaterThanOrEqual |
The greater than or equal relation operator (>=) compares its operands to determine
which one is greater than or equal to the other.
| |
| Inequality |
The inequality operator (!=) compares its operands to determine if they are not equal.
| |
| LessThan |
The less than relation operator (<) compares its operands to determine
which one is less than the other.
| |
| 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 PIPointSource represents a
PointSource Attribute associated with
a PIPoint. Each PIPoint belongs to a specific
PIPointSource on a PIServer. The total number of points associated
with the point source is available in the PointCount property.
| This method, property, or class is not available in the legacy .NET 3.5 version of the SDK. |
Examples
// Get the PIPointSources from the PIServer on the local computer PISystems myPISystems = new PISystems(); PISystem myPISystem = myPISystems.DefaultPISystem; PIServer myPIServer = PIServer.FindPIServer(myPISystem, piServerName); // Display information about each PIPointSource and its properties PIPointSources pointsources = myPIServer.PointSources; Console.WriteLine("Found {0} pointsources", pointsources.Count); foreach (PIPointSource pointsource in pointsources) { Console.WriteLine(pointsource.Name); Console.WriteLine(" Description: {0}", pointsource.Description); Console.WriteLine(" PointCount: {0}", pointsource.PointCount); Console.WriteLine(); }
' Get the PIPointSources 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) ' Display information about each PIPointSource and its properties Dim pointsources As PIPointSources = myPIServer.PointSources Console.WriteLine("Found {0} pointsources", pointsources.Count) For Each pointsource As PIPointSource In pointsources Console.WriteLine(pointsource.Name) Console.WriteLine(" Description: {0}", pointsource.Description) Console.WriteLine(" PointCount: {0}", pointsource.PointCount) Console.WriteLine() Next
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.