InvalidFormatException Constructor(String)
Initializes a new instance of the InvalidFormatException class with a specified error message.

C# Syntax

public InvalidFormatException( 
   string message
)

Parameters

message
The error message that explains the reason for the exception.