SignatureVerificationFailedException Constructors

Definition

Initializes a new instance of the SignatureVerificationFailedException class.

Overloads

SignatureVerificationFailedException()

Initializes a new instance of the SignatureVerificationFailedException class.

SignatureVerificationFailedException(String)

Initializes a new instance of the SignatureVerificationFailedException class with a specified error message.

SignatureVerificationFailedException(SerializationInfo, StreamingContext)

Initializes a new instance of the SignatureVerificationFailedException class with serialized data.

SignatureVerificationFailedException(String, Exception)

Initializes a new instance of the SignatureVerificationFailedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

SignatureVerificationFailedException()

Initializes a new instance of the SignatureVerificationFailedException class.

public SignatureVerificationFailedException ();

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error. This message takes into account the current system culture.

The following table shows the initial property values for the new instance.

Property Value
InnerException null.
Message The localized error message string.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

SignatureVerificationFailedException(String)

Initializes a new instance of the SignatureVerificationFailedException class with a specified error message.

public SignatureVerificationFailedException (string message);

Parameters

message
String

The error message that explains the reason for the exception.

Remarks

This constructor initializes the Message property of the new exception using the message parameter. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

The following table shows the initial property values for the new instance.

Property Value
InnerException null.
Message The error message string.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

SignatureVerificationFailedException(SerializationInfo, StreamingContext)

Initializes a new instance of the SignatureVerificationFailedException class with serialized data.

protected SignatureVerificationFailedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

A SerializationInfo object that holds the serialized object data.

context
StreamingContext

A StreamingContext object that contains the contextual information about the source or destination.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

SignatureVerificationFailedException(String, Exception)

Initializes a new instance of the SignatureVerificationFailedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public SignatureVerificationFailedException (string message, Exception inner);

Parameters

message
String

The error message that explains the reason for the exception.

inner
Exception

The Exception that is the cause of the current exception. If the inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor.

The following table shows the initial property values for the new instance.

Property Value
InnerException The inner exception reference.
Message The error message string.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1