PISystem.DefaultPIServerName Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public string DefaultPIServerName { get; set; }
Public Property DefaultPIServerName As String Get Set Dim instance As PISystem Dim value As String value = instance.DefaultPIServerName instance.DefaultPIServerName = value
public: property String^ DefaultPIServerName { String^ get (); void set (String^ value); }
member DefaultPIServerName : string with get, set
Property Value
Type: StringThe name of the default PIServer for this PISystem. Returns if a default PIServer has not been set.
Remarks
This property is the name of the default PIServer for this PISystem. When this property is set and the default PIServer on the AFDatabase is not set, it is used to resolve any %SERVER% substitutions for any configuration strings in this PISystem and will make this substitution token consistent across all client machines. When both the default PIServer of the PISystem and the AFDatabase are not set, then the %SERVER% substitutions will resolve to the DefaultPIServer setting for the current client machine. Changing this property is an easy way to modify the PI Data Archive that the configuration strings are referencing in a single location.