PIAuthenticationException.Reason Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- 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.1.1.1182
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.