Sdílet prostřednictvím


InvalidCredentialException Konstruktory

Definice

Inicializuje novou instanci InvalidCredentialException třídy.

Přetížení

Name Description
InvalidCredentialException()

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

InvalidCredentialException(String)

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

InvalidCredentialException(SerializationInfo, StreamingContext)
Zastaralé.

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

InvalidCredentialException(String, Exception)

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

InvalidCredentialException()

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

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

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

Poznámky

Tento konstruktor nedělá nic.

Platí pro

InvalidCredentialException(String)

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

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

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)

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

InvalidCredentialException(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 InvalidCredentialException třídy ze zadaných SerializationInfo instancí třídy a StreamingContext třídy.

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)

Parametry

serializationInfo
SerializationInfo

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

streamingContext
StreamingContext

Instance StreamingContext

Atributy

Viz také

Platí pro

InvalidCredentialException(String, Exception)

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

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

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)

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