ParseResultFromException Method

Creates a ParseResult instance that represents a parsing error.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public static ParseResult FromException(
	CommandLineArgumentException exception,
	ReadOnlyMemory<string> remainingArguments
)

Parameters

exception  CommandLineArgumentException
The exception that occurred during parsing.
remainingArguments  ReadOnlyMemoryString
Any remaining arguments that were not parsed.

Return Value

ParseResult
An instance of the ParseResult structure.

Exceptions

ArgumentNullExceptionexception is .

See Also