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

AF SDK Reference

PIPointSource Class

  • Last UpdatedNov 18, 2025
  • 5 minute read
PIPointSource Class
The PIPointSource object represents a point source on a PIServer.

Inheritance Hierarchy

SystemObject
  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

  NameDescription
Public property
Description
This property identifies the Description of the PIPointSource.
Public property
Name
This property identifies the name of the PIPointSource.
Public property
PointCount
The point count associated with the PIPointSource.
Public property
Server
The PIServer for this PIPointSource.

Methods

  NameDescription
Public method
CompareTo(Object)
Compares this instance with a specified Object.
Public method
CompareTo(PIPointSource)
Compares this instance with a specified PIPointSource.
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public method
Equals(PIPointSource)
Indicates whether the current object is equal to another object of the same type.
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
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
ToString
Returns a String that represents the current object.
(Overrides ObjectToString.)

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 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.

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 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.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7

See Also

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