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

AF SDK Reference

PIServer.CreatePIPoint Method

  • Last UpdatedNov 18, 2025
  • 3 minute read
PIServer.CreatePIPoint Method
Create a new PIPoint on the current PIServer.

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

Syntax

public PIPoint CreatePIPoint(
	string pointName,
	IDictionary<string, Object> attributeValues = null
)
Public Function CreatePIPoint ( 
	pointName As String,
	Optional attributeValues As IDictionary(Of String, Object) = Nothing
) As PIPoint

Dim instance As PIServer
Dim pointName As String
Dim attributeValues As IDictionary(Of String, Object)
Dim returnValue As PIPoint

returnValue = instance.CreatePIPoint(pointName, 
	attributeValues)
public:
PIPoint^ CreatePIPoint(
	String^ pointName, 
	IDictionary<String^, Object^>^ attributeValues = nullptr
)
member CreatePIPoint : 
        pointName : string * 
        ?attributeValues : IDictionary<string, Object> 
(* Defaults:
        let _attributeValues = defaultArg attributeValues null
*)
-> PIPoint 

Parameters

pointName
Type: SystemString
The name for the new PIPoint being created.
attributeValues (Optional)
Type: System.Collections.GenericIDictionaryString, Object
A dictionary of attribute values for the new PIPoint being created. The dictionary key is the name of the attribute to be modified and the dictionary value is the new value for the attribute. If , then the PIPoint will be created with default attribute values.

Return Value

Type: PIPoint
Returns the newly created PIPoint.

Exceptions

ExceptionCondition
AggregateExceptionIf one or more of the PI Point attribute names are invalid.
PIExceptionIf one or more of the PI Point attribute values are invalid and rejected by the server.

Remarks

This method is used to create a new PIPoint on the current PIServer. The attributes for the new PIPoint can be set using the attributeValues parameter or with the PIPoint.SetAttribute method after creation.

Version Information

AFSDK


See Also

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