Επεξεργασία

Κοινή χρήση μέσω


InvalidCredentialException Constructors

Definition

Initializes a new instance of the InvalidCredentialException class.

Overloads

InvalidCredentialException()

Initializes a new instance of the InvalidCredentialException class with no message.

InvalidCredentialException(String)

Initializes a new instance of the InvalidCredentialException class with the specified message.

InvalidCredentialException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the InvalidCredentialException class from the specified instances of the SerializationInfo and StreamingContext classes.

InvalidCredentialException(String, Exception)

Initializes a new instance of the InvalidCredentialException class with the specified message and inner exception.

InvalidCredentialException()

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

Initializes a new instance of the InvalidCredentialException class with no message.

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

Remarks

This constructor does nothing.

Applies to

InvalidCredentialException(String)

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

Initializes a new instance of the InvalidCredentialException class with the specified message.

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)

Parameters

message
String

A String that describes the authentication failure.

Remarks

This constructor initializes the Message property with the text in the message parameter. The InnerException property is set to null.

See also

Applies to

InvalidCredentialException(SerializationInfo, StreamingContext)

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

Caution

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

Initializes a new instance of the InvalidCredentialException class from the specified instances of the SerializationInfo and StreamingContext classes.

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

Parameters

serializationInfo
SerializationInfo

A SerializationInfo instance that contains the information required to deserialize the new InvalidCredentialException instance.

streamingContext
StreamingContext

A StreamingContext instance.

Attributes

See also

Applies to

InvalidCredentialException(String, Exception)

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

Initializes a new instance of the InvalidCredentialException class with the specified message and inner exception.

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)

Parameters

message
String

A String that describes the authentication failure.

innerException
Exception

The Exception that is the cause of the current exception.

Remarks

This constructor initializes the Message property with the text in the message parameter and initializes the InnerException property with the innerException parameter value.

See also

Applies to