PIAuthenticationException.Reason Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
The information for why the authentication failed when connecting to the PIServer.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public IDictionary<PIAuthenticationOption, PIConnectionResult> Reason { get; }
Public ReadOnly Property Reason As IDictionary(Of PIAuthenticationOption, PIConnectionResult) Get Dim instance As PIAuthenticationException Dim value As IDictionary(Of PIAuthenticationOption, PIConnectionResult) value = instance.Reason
public: property IDictionary<PIAuthenticationOption, PIConnectionResult>^ Reason { IDictionary<PIAuthenticationOption, PIConnectionResult>^ get (); }
member Reason : IDictionary<PIAuthenticationOption, PIConnectionResult> with get
Property Value
Type: IDictionaryPIAuthenticationOption, PIConnectionResultReturns the information for why the authentication failed when connecting to the PIServer.