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

AF SDK Reference

PIAuthenticationOption Enumeration

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIAuthenticationOption Enumeration
Defines the authentication options used when making a connection to a PIServer.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public enum PIAuthenticationOption
Public Enumeration PIAuthenticationOption

Dim instance As PIAuthenticationOption
public enum class PIAuthenticationOption
type PIAuthenticationOption

Members

  Member nameValueDescription
Windows1 Windows Integrated Security will be tried when making a connection to the PIServer.
Trust2 PI Data Archive trust mechanism will be tried when making a connection to the PIServer.
OIDC7 PI Data Archive OIDC mechanism will be tried when making a connection to the PIServer.
AllowExplicit100 An explicit login using PIUserAuthentication is allowed to be tried when making a connection to the PIServer.

Remarks

The PIServer.Connect Overload methods use the value of the AuthenticationOptions property to control the authentication options when attempting to make a connection to a PIServer.
Note Note
When connecting to a PIServer with an explicit login by prompting for credentials with the ConnectWithPrompt Overload method or by specifying a NetworkCredential with the Connect(NetworkCredential, AFConnectionPreference, PIAuthenticationMode) method, the AuthenticationOptions order will be ignored. Even if Windows is not listed, the WindowsAuthentication will be attempted if the user selects it.

Version Information

AFSDK


See Also

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