SymbolResult.GetValueForArgument Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetValueForArgument(Argument) |
Gets the parsed or default value for the specified argument. |
GetValueForArgument<T>(Argument<T>) |
Gets the parsed or default value for the specified argument. |
GetValueForArgument(Argument)
Gets the parsed or default value for the specified argument.
public:
System::Object ^ GetValueForArgument(System::CommandLine::Argument ^ argument);
public object? GetValueForArgument (System.CommandLine.Argument argument);
member this.GetValueForArgument : System.CommandLine.Argument -> obj
Public Function GetValueForArgument (argument As Argument) As Object
Parameters
- argument
- Argument
The argument for which to get a value.
Returns
The parsed value or a configured default.
Applies to
GetValueForArgument<T>(Argument<T>)
Gets the parsed or default value for the specified argument.
public:
generic <typename T>
T GetValueForArgument(System::CommandLine::Argument<T> ^ argument);
public T GetValueForArgument<T> (System.CommandLine.Argument<T> argument);
member this.GetValueForArgument : System.CommandLine.Argument<'T> -> 'T
Public Function GetValueForArgument(Of T) (argument As Argument(Of T)) As T
Type Parameters
- T
Parameters
- argument
- Argument<T>
The argument for which to get a value.
Returns
The parsed value or a configured default.