PIServer.CreatePIPoint Method
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: PIPointReturns the newly created PIPoint.
Exceptions
| Exception | Condition |
|---|---|
| AggregateException | If one or more of the PI Point attribute names are invalid. |
| PIException | If 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.