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

AF SDK Reference

PIPointClass Class

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

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.PIPIPointClass

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

Syntax

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

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

The PIPointClass type exposes the following members.

Properties

  NameDescription
Public property
Name
This property identifies the name of the PIPointClass.
Public property
Server
The PIServer for this PIPoint.

Methods

  NameDescription
Public method
CompareTo(Object)
Compares this instance with a specified Object.
Public method
CompareTo(PIPointClass)
Compares this instance with a specified PIPointClass.
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public method
Equals(PIPointClass)
Indicates whether the current object is equal to another object of the same type.
Public method
GetAttributes
Get the list of PIPoint attribute values for this PIPointClass.
Public method
GetAttributeValue
Get the PIPoint attribute value for the specified attribute 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
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 PIPointClass represents a template of attributes used for creating a PIPoint. Each PIPoint on a PIServer refers to a single PIPointClass that defines the attributes that apply to the PIPoint.

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 PIPointClasses 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 PIPointClass and its attributes
foreach (PIPointClass pointClass in myPIServer.PointClasses)
{
    Console.WriteLine("Name of the PIPointClass = {0}", pointClass.Name);
    IDictionary<string, object> attributes = pointClass.GetAttributes();
    foreach (var item in attributes)
    {
        Console.WriteLine("  Attribute '{0}' = '{1}'", item.Key, item.Value);
    }
}
' Get the PIPointClasses 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 PIPointClass and its attributes
For Each pointClass As PIPointClass In myPIServer.PointClasses
    Console.WriteLine("Name of the PIPointClass = {0}", pointClass.Name)
    Dim attributes As IDictionary(Of String, Object) = pointClass.GetAttributes
    For Each item As KeyValuePair(Of String, Object) In attributes
        Console.WriteLine("  Attribute '{0}' = '{1}'", item.Key, item.Value)
    Next
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


See Also

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