Click or drag to resize
OSIsoft, LLC

PIServerCreatePIPoint Method

Create a new PIPoint on the current PIServer.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.6.195
Syntax
public PIPoint CreatePIPoint(
	string pointName,
	IDictionary<string, Object> attributeValues = null
)

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

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