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

AF SDK Reference

PISystem.DefaultPIServerName Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
PISystem.DefaultPIServerName Property
This property is the name of the default PIServer for this PISystem.

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: String
The 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.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5

See Also

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