![]() | PIPointClasses Class |
Namespace: OSIsoft.AF.PI
The PIPointClasses type exposes the following members.
Name | Description | |
---|---|---|
![]() | Count |
Gets the number of items actually contained in the collection.
|
![]() | ItemInt32 |
Gets or sets the item at the specified index.
|
![]() | ItemString |
Returns the specified object from the collection by name.
|
![]() | Server |
The PIServer for this PIPointClasses collection.
|
Name | Description | |
---|---|---|
![]() | Contains(String) |
This method determines whether the collection contains a specific item referenced by name.
|
![]() | Contains(PIPointClass) |
This method determines whether the collection contains a specific item.
|
![]() | CopyTo |
Copies the entire collection to a compatible one-dimensional Array,
starting at the specified index of the target array.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetEnumerator |
Returns an enumerator that iterates through the collection.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf |
Searches for the specified object and returns the zero-based index of the first
occurrence within the entire collection.
|
![]() | Refresh |
Refresh the collection by loading from the PIServer.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() | 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.) |
![]() |
---|
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); } }