public Object? ParseWithErrorHandling(
string[] args,
int index = 0
)
Public Function ParseWithErrorHandling (
args As String(),
Optional index As Integer = 0
) As Object
Dim instance As CommandLineParser
Dim args As String()
Dim index As Integer
Dim returnValue As Object
returnValue = instance.ParseWithErrorHandling(args,
index)
public:
Object^ ParseWithErrorHandling(
array<String^>^ args,
int index = 0
)
If an error occurs or parsing is canceled, it prints errors to the Error stream, and usage help to the UsageWriter if the HelpRequested property is true. It then returns null.
If the return value is null, check the ParseResult property for more information about whether an error occurred or parsing was canceled.
This method will never throw a CommandLineArgumentException exception.
ArgumentNullException | args is null. |
ArgumentOutOfRangeException | index does not fall within the bounds of args. |