ParseResult.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)
- Source:
- ParseResult.cs
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>)
- Source:
- ParseResult.cs
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
T
The parsed value or a configured default.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET