CommandLineParseResult.TryGetOptionArgumentList(String, String[]) Method

Definition

Gets the argument list for the specified option.

public bool TryGetOptionArgumentList(string optionName, out string[]? arguments);
member this.TryGetOptionArgumentList : string * String[] -> bool
Public Function TryGetOptionArgumentList (optionName As String, ByRef arguments As String()) As Boolean

Parameters

optionName
String

The name of the option.

arguments
String[]

The arguments associated with the option.

Returns

Returns true if there are some arguments; false otherwise.

Applies to