Sdílet prostřednictvím


AuthenticationException Konstruktory

Definice

Inicializuje novou instanci AuthenticationException třídy.

Přetížení

Name Description
AuthenticationException()

Inicializuje novou instanci AuthenticationException třídy bez zprávy.

AuthenticationException(String)

Inicializuje novou instanci AuthenticationException třídy se zadanou zprávou.

AuthenticationException(SerializationInfo, StreamingContext)
Zastaralé.

Inicializuje novou instanci AuthenticationException třídy ze zadaných SerializationInfo instancí třídy a StreamingContext třídy.

AuthenticationException(String, Exception)

Inicializuje novou instanci AuthenticationException třídy se zadanou zprávou a vnitřní výjimkou.

AuthenticationException()

Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs

Inicializuje novou instanci AuthenticationException třídy bez zprávy.

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

Poznámky

Tento konstruktor nedělá nic.

Platí pro

AuthenticationException(String)

Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs

Inicializuje novou instanci AuthenticationException třídy se zadanou zprávou.

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)

Parametry

message
String

A String , který popisuje selhání ověřování.

Poznámky

Tento konstruktor inicializuje Message vlastnost s textem v parametru message . Vlastnost InnerException je nastavena na hodnotu null.

Viz také

Platí pro

AuthenticationException(SerializationInfo, StreamingContext)

Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs

Upozornění

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

Inicializuje novou instanci AuthenticationException třídy ze zadaných SerializationInfo instancí třídy a StreamingContext třídy.

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)

Parametry

serializationInfo
SerializationInfo

Instance SerializationInfo , která obsahuje informace potřebné k deserializaci nové AuthenticationException instance.

streamingContext
StreamingContext

Instance StreamingContext

Atributy

Viz také

Platí pro

AuthenticationException(String, Exception)

Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs
Zdroj:
AuthenticationException.cs

Inicializuje novou instanci AuthenticationException třídy se zadanou zprávou a vnitřní výjimkou.

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)

Parametry

message
String

A String , který popisuje selhání ověřování.

innerException
Exception

To Exception je příčina aktuální výjimky.

Poznámky

Tento konstruktor inicializuje Message vlastnost s textem v parametru message a inicializuje InnerException vlastnost s hodnotou parametru innerException .

Viz také

Platí pro