IniFormatException Class
Definition
Represents an error that occurs when INI data is malformed, such as an unterminated section header, an empty section name, or an entry with no assignment.
public sealed class IniFormatException : FormatException, ISerializable
- Inheritance
-
IniFormatException
- Implements
- Inherited Members
- Extension Methods
Constructors
IniFormatException()
Initializes a new instance of the IniFormatException class.
public IniFormatException()
IniFormatException(string)
Initializes a new instance of the IniFormatException class.
public IniFormatException(string message)
Parameters
messagestringThe error message.
IniFormatException(string, Exception)
Initializes a new instance of the IniFormatException class.
public IniFormatException(string message, Exception innerException)
Parameters
IniFormatException(string, int, int)
Initializes a new instance of the IniFormatException class and records the source location at which the parse error was detected.
public IniFormatException(string message, int line, int offset)
Parameters
Properties
LineNumber
Gets the 1-based line number at which the parse error was detected, when available.
public int? LineNumber { get; }
Property Value
Offset
Gets the zero-based byte offset at which the parse error was detected, when available.
public int? Offset { get; }
Property Value
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |