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)

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()

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

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

Remarks

This constructor does nothing.

InvalidCredentialException(String)

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

public:
 InvalidCredentialException(System::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

InvalidCredentialException(SerializationInfo, StreamingContext)

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);
new System.Security.Authentication.InvalidCredentialException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.InvalidCredentialException

Parameters

serializationInfo
SerializationInfo

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

streamingContext
StreamingContext

A StreamingContext instance.

See also

InvalidCredentialException(String, Exception)

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);
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