Nyelv

AuthenticationException Konstruktorok

Definíció

Inicializálja a AuthenticationException osztály új példányát.

Túlterhelések

Name Description
AuthenticationException()

Inicializálja az osztály új példányát AuthenticationException üzenet nélkül.

AuthenticationException(String)

Inicializálja az osztály új példányát AuthenticationException a megadott üzenettel.

AuthenticationException(SerializationInfo, StreamingContext)
Elavult.

Inicializálja az AuthenticationException osztály új példányát az és SerializationInfo az StreamingContext osztályok megadott példányaiból.

AuthenticationException(String, Exception)

Inicializálja az AuthenticationException osztály új példányát a megadott üzenettel és belső kivétellel.

AuthenticationException()

Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs

Inicializálja az osztály új példányát AuthenticationException üzenet nélkül.

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

Megjegyzések

Ez a konstruktor nem csinál semmit.

A következőre érvényes:

AuthenticationException(String)

Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs

Inicializálja az osztály új példányát AuthenticationException a megadott üzenettel.

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)

Paraméterek

message
String

A String hitelesítési hibát leíró hiba.

Megjegyzések

Ez a konstruktor inicializálja a Message tulajdonságot a paraméter szövegével message . A InnerException tulajdonság be van állítva null-re.

Lásd még

A következőre érvényes:

AuthenticationException(SerializationInfo, StreamingContext)

Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs

Figyelemfelhívás

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

Inicializálja az AuthenticationException osztály új példányát az és SerializationInfo az StreamingContext osztályok megadott példányaiból.

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)

Paraméterek

serializationInfo
SerializationInfo

Az SerializationInfo új AuthenticationException példány deszerializálásához szükséges információkat tartalmazó példány.

streamingContext
StreamingContext

Egy StreamingContext példány.

Attribútumok

Lásd még

A következőre érvényes:

AuthenticationException(String, Exception)

Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs
Forrás:
AuthenticationException.cs

Inicializálja az AuthenticationException osztály új példányát a megadott üzenettel és belső kivétellel.

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)

Paraméterek

message
String

A String hitelesítési hibát leíró hiba.

innerException
Exception

Ez Exception az oka az aktuális kivételnek.

Megjegyzések

Ez a konstruktor inicializálja a Message tulajdonságot a paraméter szövegével message , és inicializálja a InnerException tulajdonságot a innerException paraméter értékével.

Lásd még

A következőre érvényes: