AdalServiceException Constructor (String, WebException)


Applies to: Version: 2.19.208020213, Platform: .NET Desktop.

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

Namespace:   Microsoft.IdentityModel.Clients.ActiveDirectory
Assembly:  Microsoft.IdentityModel.Clients.ActiveDirectory (in Microsoft.IdentityModel.Clients.ActiveDirectory.dll)


public AdalServiceException(
    string errorCode,
    WebException innerException


  • errorCode
    Type: System.String

    The error code returned by the service or generated by client. This is the code you can rely on for exception handling.

  • innerException
    Type: System.Net.WebException

    The exception that is the cause of the current exception, or a null reference if no inner exception is specified. It may especially contain the actual error message returned by the service.

See Also

AdalServiceException Overload
AdalServiceException Class
Microsoft.IdentityModel.Clients.ActiveDirectory Namespace

Return to top