Compartir por


InvalidCredentialException Constructores

Definición

Inicializa una nueva instancia de la clase InvalidCredentialException.

Sobrecargas

Nombre Description
InvalidCredentialException()

Inicializa una nueva instancia de la InvalidCredentialException clase sin mensaje.

InvalidCredentialException(String)

Inicializa una nueva instancia de la InvalidCredentialException clase con el mensaje especificado.

InvalidCredentialException(SerializationInfo, StreamingContext)
Obsoletos.

Inicializa una nueva instancia de la InvalidCredentialException clase a partir de las instancias especificadas de las SerializationInfo clases y StreamingContext .

InvalidCredentialException(String, Exception)

Inicializa una nueva instancia de la InvalidCredentialException clase con el mensaje especificado y la excepción interna.

InvalidCredentialException()

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

Inicializa una nueva instancia de la InvalidCredentialException clase sin mensaje.

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

Comentarios

Este constructor no hace nada.

Se aplica a

InvalidCredentialException(String)

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

Inicializa una nueva instancia de la InvalidCredentialException clase con el mensaje especificado.

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)

Parámetros

message
String

que String describe el error de autenticación.

Comentarios

Este constructor inicializa la Message propiedad con el texto del message parámetro . La propiedad InnerException se configura como null.

Consulte también

Se aplica a

InvalidCredentialException(SerializationInfo, StreamingContext)

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

Precaución

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

Inicializa una nueva instancia de la InvalidCredentialException clase a partir de las instancias especificadas de las SerializationInfo clases y 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}")]
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)

Parámetros

serializationInfo
SerializationInfo

Instancia SerializationInfo de que contiene la información necesaria para deserializar la nueva InvalidCredentialException instancia.

streamingContext
StreamingContext

Instancia de StreamingContext.

Atributos

Consulte también

Se aplica a

InvalidCredentialException(String, Exception)

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

Inicializa una nueva instancia de la InvalidCredentialException clase con el mensaje especificado y la excepción interna.

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)

Parámetros

message
String

que String describe el error de autenticación.

innerException
Exception

que Exception es la causa de la excepción actual.

Comentarios

Este constructor inicializa la Message propiedad con el texto del message parámetro e inicializa la InnerException propiedad con el valor del innerException parámetro .

Consulte también

Se aplica a