SecurityTokenException Constructor (String, Exception)

 

Initializes a new instance of the SecurityTokenException class using the specified error message and root cause of the error.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public SecurityTokenException(
	string message,
	Exception innerException
)

Parameters

message
Type: System.String

A message that identifies the reason the exception occurred.

innerException
Type: System.Exception

A Exception that represents the root cause of the exception.

.NET Framework
Available since 3.0
Return to top
Show: