AuthenticationException Constructor (String, Exception)


Initializes a new instance of the AuthenticationException class with the specified message and inner exception.

Namespace:   System.Security.Authentication
Assembly:  System (in System.dll)

public AuthenticationException(
	string message,
	Exception innerException


Type: System.String

A String that describes the authentication failure.

Type: System.Exception

The Exception that is the cause of the current exception.

This constructor initializes the Message property with the text in the message parameter and initializes the InnerException property with the innerException parameter value.

.NET Framework
Available since 2.0
Return to top