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.cs
- Исходный код:
- AuthenticationException.cs
Инициализирует новый экземпляр AuthenticationException класса без сообщения.
public:
AuthenticationException();
public AuthenticationException();
Public Sub New ()
Комментарии
Этот конструктор ничего не делает.
Применяется к
AuthenticationException(String)
- Исходный код:
- AuthenticationException.cs
- Исходный код:
- AuthenticationException.cs
- Исходный код:
- 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 свойство с текстом в параметре message . Для свойства InnerException задано значение null.
См. также раздел
Применяется к
AuthenticationException(SerializationInfo, StreamingContext)
- Исходный код:
- AuthenticationException.cs
- Исходный код:
- AuthenticationException.cs
- Исходный код:
- 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);
[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);
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}")>]
new System.Security.Authentication.AuthenticationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.AuthenticationException
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.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 и инициализирует MessageInnerException свойство со значением innerException параметра.