Click or drag to resize
OSIsoft, LLC

PIAuthenticationException Constructor

Initializes a new instance of the PIAuthenticationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version:
public PIAuthenticationException(
	PIServer piServer,
	string message,
	int statusCode,
	IDictionary<PIAuthenticationOption, PIConnectionResult> reason,
	Exception innerException = null


Type: OSIsoft.AF.PIPIServer
The PIServer associated with the exception.
Type: SystemString
The error message that explains the reason for the exception.
Type: SystemInt32
The status code indicating the cause of the current exception that was returned from the PIServer.
Type: System.Collections.GenericIDictionaryPIAuthenticationOption, PIConnectionResult
The information for why the authentication failed when connecting to the PIServer.
innerException (Optional)
Type: SystemException
The exception that is the cause of the current exception, or if no inner exception is specified.
This exception can be thrown when there is an authentication error when establishing a connection to the PIServer. An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property.
Version Information


Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6
See Also
Enabling Operational Intelligence