AuthenticationException Конструкторы

Определение

Инициализирует новый экземпляр класса AuthenticationException.

Перегрузки

AuthenticationException()

Инициализирует новый экземпляр класса AuthenticationException без сообщения.

AuthenticationException(String)

Инициализирует новый экземпляр класса AuthenticationException указанным сообщением.

AuthenticationException(SerializationInfo, StreamingContext)
Устаревшие..

Инициализирует новый экземпляр класса AuthenticationException на основе указанных экземпляров классов SerializationInfo и StreamingContext.

AuthenticationException(String, Exception)

Инициализирует новый экземпляр класса AuthenticationException с указанными сообщением и внутренним исключением.

AuthenticationException()

Исходный код:
AuthenticationException.cs
Исходный код:
AuthenticationException.cs
Исходный код:
AuthenticationException.cs

Инициализирует новый экземпляр класса AuthenticationException без сообщения.

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

Комментарии

Этот конструктор не выполняет никаких действий.

Применяется к

AuthenticationException(String)

Исходный код:
AuthenticationException.cs
Исходный код:
AuthenticationException.cs
Исходный код:
AuthenticationException.cs

Инициализирует новый экземпляр класса AuthenticationException указанным сообщением.

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)

Параметры

message
String

Значение типа String, представляющее описание сбоя проверки подлинности.

Комментарии

Этот конструктор инициализирует Message свойство текстом в параметре message . Свойство InnerException имеет значение null.

См. также раздел

Применяется к

AuthenticationException(SerializationInfo, StreamingContext)

Исходный код:
AuthenticationException.cs
Исходный код:
AuthenticationException.cs
Исходный код:
AuthenticationException.cs

Внимание!

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

Инициализирует новый экземпляр класса AuthenticationException на основе указанных экземпляров классов SerializationInfo и StreamingContext.

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)

Параметры

serializationInfo
SerializationInfo

Объект SerializationInfo, который содержит информацию, необходимую для десериализации нового экземпляра класса AuthenticationException.

streamingContext
StreamingContext

Экземпляр StreamingContext.

Атрибуты

См. также раздел

Применяется к

AuthenticationException(String, Exception)

Исходный код:
AuthenticationException.cs
Исходный код:
AuthenticationException.cs
Исходный код:
AuthenticationException.cs

Инициализирует новый экземпляр класса AuthenticationException с указанными сообщением и внутренним исключением.

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)

Параметры

message
String

Значение типа String, представляющее описание сбоя проверки подлинности.

innerException
Exception

Исключение Exception, являющееся причиной текущего исключения.

Комментарии

Этот конструктор инициализирует Message свойство с текстом в параметре message и инициализирует InnerException свойство значением innerException параметра.

См. также раздел

Применяется к