Click or drag to resize
OSIsoft, LLC

PIPointClasses Class

The PIPointClasses collection represents the available PIPointClass objects on a particular PIServer.

Inheritance Hierarchy

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version:
public sealed class PIPointClasses : IList<PIPointClass>, 
	ICollection<PIPointClass>, IEnumerable<PIPointClass>, IEnumerable, 
	IList, ICollection

The PIPointClasses type exposes the following members.

Public propertyCount
Gets the number of items actually contained in the collection.
Public propertyItemInt32
Gets or sets the item at the specified index.
Public propertyItemString
Returns the specified object from the collection by name.
Public propertyServer
The PIServer for this PIPointClasses collection.
Public methodContains(String)
This method determines whether the collection contains a specific item referenced by name.
Public methodContains(PIPointClass)
This method determines whether the collection contains a specific item.
Public methodCopyTo
Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.
Public methodRefresh
Refresh the collection by loading from the PIServer.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Extension Methods
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 only available in the .NET 4 version of the SDK.

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


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