Partager via


InvalidCredentialException Constructeurs

Définition

Initialise une nouvelle instance de la classe InvalidCredentialException.

Surcharges

Nom Description
InvalidCredentialException()

Initialise une nouvelle instance de la InvalidCredentialException classe sans message.

InvalidCredentialException(String)

Initialise une nouvelle instance de la InvalidCredentialException classe avec le message spécifié.

InvalidCredentialException(SerializationInfo, StreamingContext)
Obsolète.

Initialise une nouvelle instance de la InvalidCredentialException classe à partir des instances spécifiées des classes et StreamingContext des SerializationInfo classes.

InvalidCredentialException(String, Exception)

Initialise une nouvelle instance de la InvalidCredentialException classe avec le message et l’exception interne spécifiés.

InvalidCredentialException()

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

Initialise une nouvelle instance de la InvalidCredentialException classe sans message.

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

Remarques

Ce constructeur ne fait rien.

S’applique à

InvalidCredentialException(String)

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

Initialise une nouvelle instance de la InvalidCredentialException classe avec le message spécifié.

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

Paramètres

message
String

Qui String décrit l’échec d’authentification.

Remarques

Ce constructeur initialise la Message propriété avec le texte du message paramètre. La InnerException propriété est définie sur null.

Voir aussi

S’applique à

InvalidCredentialException(SerializationInfo, StreamingContext)

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

Attention

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

Initialise une nouvelle instance de la InvalidCredentialException classe à partir des instances spécifiées des classes et StreamingContext des SerializationInfo classes.

protected:
 InvalidCredentialException(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 InvalidCredentialException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected InvalidCredentialException(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.InvalidCredentialException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.InvalidCredentialException
new System.Security.Authentication.InvalidCredentialException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.InvalidCredentialException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Paramètres

serializationInfo
SerializationInfo

Instance SerializationInfo qui contient les informations requises pour désérialiser la nouvelle InvalidCredentialException instance.

streamingContext
StreamingContext

Une instance StreamingContext .

Attributs

Voir aussi

S’applique à

InvalidCredentialException(String, Exception)

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

Initialise une nouvelle instance de la InvalidCredentialException classe avec le message et l’exception interne spécifiés.

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

Paramètres

message
String

Qui String décrit l’échec d’authentification.

innerException
Exception

Cause Exception de l’exception actuelle.

Remarques

Ce constructeur initialise la Message propriété avec le texte du message paramètre et initialise la InnerException propriété avec la valeur du innerException paramètre.

Voir aussi

S’applique à