Click or drag to resize
OSIsoft, LLC

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: 2.10.6.195
Syntax
public sealed class PIPointClass : IComparable, 
	IComparable<PIPointClass>, IEquatable<PIPointClass>

The PIPointClass type exposes the following members.

Properties
  NameDescription
Public propertyName
This property identifies the name of the PIPointClass.
Public propertyServer
The PIServer for this PIPoint.
Top
Methods
  NameDescription
Public methodCompareTo(Object)
Compares this instance with a specified Object.
Public methodCompareTo(PIPointClass)
Compares this instance with a specified PIPointClass.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(PIPointClass)
Indicates whether the current object is equal to another object of the same type.
Public methodGetAttributes
Get the list of PIPoint attribute values for this PIPointClass.
Public methodGetAttributeValue
Get the PIPoint attribute value for the specified attribute name.
Public methodGetHashCode
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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current object.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
The equality operator (==) compares its operands to determine if they are equal.
Public operatorStatic memberGreaterThan
The greater than relation operator (>) compares its operands to determine which one is greater than the other.
Public operatorStatic memberGreaterThanOrEqual
The greater than or equal relation operator (>=) compares its operands to determine which one is greater than or equal to the other.
Public operatorStatic memberInequality
The inequality operator (!=) compares its operands to determine if they are not equal.
Public operatorStatic memberLessThan
The less than relation operator (<) compares its operands to determine which one is less than the other.
Public operatorStatic memberLessThanOrEqual
The less than or equal relation operator (<=) compares its operands to determine which one is less than or equal to the other.
Top
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 only available in the .NET 4 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);
    }
}
Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5
See Also
Enabling Operational Intelligence