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

AF SDK Reference

PIPointList.SaveAttributes Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIPointList.SaveAttributes Method
Set the PIPoint attribute values for each PIPoint in the list and save the attribute values to the server.

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

Syntax

public AFErrors<string> SaveAttributes(
	IDictionary<string, Object> attributeValues
)
Public Function SaveAttributes ( 
	attributeValues As IDictionary(Of String, Object)
) As AFErrors(Of String)

Dim instance As PIPointList
Dim attributeValues As IDictionary(Of String, Object)
Dim returnValue As AFErrors(Of String)

returnValue = instance.SaveAttributes(attributeValues)
public:
AFErrors<String^>^ SaveAttributes(
	IDictionary<String^, Object^>^ attributeValues
)
member SaveAttributes : 
        attributeValues : IDictionary<string, Object> -> AFErrors<string> 

Parameters

attributeValues
Type: System.Collections.GenericIDictionaryString, Object
A dictionary if new attribute values to be saved in the server for all the PIPoint in this list. The dictionary key is the name of the attribute to be modified and the dictionary value is the new value for the attribute.

Return Value

Type: AFErrorsString
Returns an AFErrorsTKey object which contains any errors that occurred during the save. If the error is related to PIServer connection then PIServerErrors key is the PIServer name, otherwise Errors key is the PIPoint name. If no errors occur, then will be returned.

Remarks

The PIPoint attribute values for all the PIPoint objects in this list are set to the specified values and then saved to the server.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in