Rediger

Del via


AuthenticationException Constructors

Definition

Initializes a new instance of the AuthenticationException class.

Overloads

AuthenticationException()

Initializes a new instance of the AuthenticationException class with no message.

AuthenticationException(String)

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

AuthenticationException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the AuthenticationException class from the specified instances of the SerializationInfo and StreamingContext classes.

AuthenticationException(String, Exception)

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

AuthenticationException()

Source:
AuthenticationException.cs
Source:
AuthenticationException.cs
Source:
AuthenticationException.cs

Initializes a new instance of the AuthenticationException class with no message.

public:
 AuthenticationException();
public AuthenticationException ();
Public Sub New ()

Remarks

This constructor does nothing.

Applies to

AuthenticationException(String)

Source:
AuthenticationException.cs
Source:
AuthenticationException.cs
Source:
AuthenticationException.cs

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

public:
 AuthenticationException(System::String ^ message);
public AuthenticationException (string? message);
public AuthenticationException (string message);
new System.Security.Authentication.AuthenticationException : string -> System.Security.Authentication.AuthenticationException
Public Sub New (message As String)

Parameters

message
String

A String that describes the authentication failure.

Remarks

This constructor initializes the Message property with the text in the message parameter. The InnerException property is set to null.

See also

Applies to

AuthenticationException(SerializationInfo, StreamingContext)

Source:
AuthenticationException.cs
Source:
AuthenticationException.cs
Source:
AuthenticationException.cs

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Initializes a new instance of the AuthenticationException class from the specified instances of the SerializationInfo and StreamingContext classes.

protected:
 AuthenticationException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected AuthenticationException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected AuthenticationException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Security.Authentication.AuthenticationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.AuthenticationException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Authentication.AuthenticationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.AuthenticationException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parameters

serializationInfo
SerializationInfo

A SerializationInfo instance that contains the information required to deserialize the new AuthenticationException instance.

streamingContext
StreamingContext

A StreamingContext instance.

Attributes

See also

Applies to

AuthenticationException(String, Exception)

Source:
AuthenticationException.cs
Source:
AuthenticationException.cs
Source:
AuthenticationException.cs

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

public:
 AuthenticationException(System::String ^ message, Exception ^ innerException);
public AuthenticationException (string? message, Exception? innerException);
public AuthenticationException (string message, Exception innerException);
new System.Security.Authentication.AuthenticationException : string * Exception -> System.Security.Authentication.AuthenticationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A String that describes the authentication failure.

innerException
Exception

The Exception that is the cause of the current exception.

Remarks

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

See also

Applies to