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

AF SDK Reference

PIPointClasses Class

  • Last UpdatedNov 18, 2025
  • 5 minute read
PIPointClasses Class
The PIPointClasses collection represents the available PIPointClass objects on a particular PIServer.

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.PIPIPointClasses

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

Syntax

public sealed class PIPointClasses : IList<PIPointClass>, 
	ICollection<PIPointClass>, IEnumerable<PIPointClass>, IEnumerable, 
	IList, ICollection
Public NotInheritable Class PIPointClasses
	Implements IList(Of PIPointClass), ICollection(Of PIPointClass), 
	IEnumerable(Of PIPointClass), IEnumerable, IList, ICollection

Dim instance As PIPointClasses
public ref class PIPointClasses sealed : IList<PIPointClass^>, 
	ICollection<PIPointClass^>, IEnumerable<PIPointClass^>, IEnumerable, 
	IList, ICollection
[<SealedAttribute>]
type PIPointClasses =  
    class
        interface IList<PIPointClass>
        interface ICollection<PIPointClass>
        interface IEnumerable<PIPointClass>
        interface IEnumerable
        interface IList
        interface ICollection
    end

The PIPointClasses type exposes the following members.

Properties

  NameDescription
Public property
Count
Gets the number of items actually contained in the collection.
Public property
ItemInt32
Gets or sets the item at the specified index.
Public property
ItemString
Returns the specified object from the collection by name.
Public property
Server
The PIServer for this PIPointClasses collection.

Methods

  NameDescription
Public method
Contains(String)
This method determines whether the collection contains a specific item referenced by name.
Public method
Contains(PIPointClass)
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
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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
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
Refresh
Refresh the collection by loading from the PIServer.
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)

Extension Methods

  NameDescription
Public Extension MethodCode example
ChunkedByPIPointClass
This extension method breaks up search results into chunks to make it easier to page through and process IEnumerableT collections in chunks.
(Defined by AFSDKExtension.)

Remarks

This is the collection of available PIPointClass objects on a particular PIServer. The contained PIPointClass objects are used as templates when creating a new PIPoint specifying the attributes associated with 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