InvalidCredentialException Konstruktorer

Definition

Initierar en ny instans av InvalidCredentialException klassen.

Överlagringar

Name Description
InvalidCredentialException()

Initierar en ny instans av InvalidCredentialException klassen utan meddelande.

InvalidCredentialException(String)

Initierar en ny instans av InvalidCredentialException klassen med det angivna meddelandet.

InvalidCredentialException(SerializationInfo, StreamingContext)
Föråldrad.

Initierar en ny instans av InvalidCredentialException klassen från de angivna instanserna av SerializationInfo klasserna och StreamingContext .

InvalidCredentialException(String, Exception)

Initierar en ny instans av InvalidCredentialException klassen med det angivna meddelandet och det inre undantaget.

InvalidCredentialException()

Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs

Initierar en ny instans av InvalidCredentialException klassen utan meddelande.

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

Kommentarer

Konstruktorn gör ingenting.

Gäller för

InvalidCredentialException(String)

Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs

Initierar en ny instans av InvalidCredentialException klassen med det angivna meddelandet.

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)

Parametrar

message
String

En String som beskriver autentiseringsfelet.

Kommentarer

Den här konstruktorn initierar Message egenskapen med texten i parametern message . Egenskapen InnerException är inställd på null.

Se även

Gäller för

InvalidCredentialException(SerializationInfo, StreamingContext)

Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs

Varning

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

Initierar en ny instans av InvalidCredentialException klassen från de angivna instanserna av SerializationInfo klasserna och 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)

Parametrar

serializationInfo
SerializationInfo

En SerializationInfo instans som innehåller den information som krävs för att deserialisera den nya InvalidCredentialException instansen.

streamingContext
StreamingContext

En StreamingContext instans.

Attribut

Se även

Gäller för

InvalidCredentialException(String, Exception)

Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs
Källa:
AuthenticationException.cs

Initierar en ny instans av InvalidCredentialException klassen med det angivna meddelandet och det inre undantaget.

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)

Parametrar

message
String

En String som beskriver autentiseringsfelet.

innerException
Exception

Det Exception är orsaken till det aktuella undantaget.

Kommentarer

Den här konstruktorn initierar Message egenskapen med texten i parametern message och initierar InnerException egenskapen med innerException parametervärdet.

Se även

Gäller för