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

AF SDK Reference

PISystems.Add Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
PISystems.Add Method
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: PISystem
Returns 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.
Note Note
Before connecting to the server, the Host must be set.

Version Information

AFSDK


See Also

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