PISystems.Add Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Registers a new PISystem to the list of known systems on the local machine.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public PISystem Add( string name )
Public Function Add ( name As String ) As PISystem Dim instance As PISystems Dim name As String Dim returnValue As PISystem returnValue = instance.Add(name)
public: PISystem^ Add( String^ name )
member Add : name : string -> PISystem
Parameters
- name
- Type: SystemString
The name of the desired name for the PISystem as it is known on the local machine. This name must be unique from all other local PISystem names on the local machine. See the ValidateName(String, String) method for a description of what is valid when setting the name of the object.
Return Value
Type: PISystemReturns the newly created PISystem object.
Remarks
This method is used to add an entry to the list of known systems on the local machine.
The configuration information used to connect to the server can be modified through properties
of the PISystem.ConnectionInfo object after it has
been created.
| Before connecting to the server, the Host must be set. |