CommandLineApplication.VersionOption 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
VersionOption(String, Func<String>, Func<String>) | |
VersionOption(String, String, String) |
VersionOption(String, Func<String>, Func<String>)
public Microsoft.Extensions.CommandLineUtils.CommandOption VersionOption (string template, Func<string> shortFormVersionGetter, Func<string> longFormVersionGetter = default);
member this.VersionOption : string * Func<string> * Func<string> -> Microsoft.Extensions.CommandLineUtils.CommandOption
Public Function VersionOption (template As String, shortFormVersionGetter As Func(Of String), Optional longFormVersionGetter As Func(Of String) = Nothing) As CommandOption
Parameters
- template
- String
Returns
Applies to
VersionOption(String, String, String)
public Microsoft.Extensions.CommandLineUtils.CommandOption VersionOption (string template, string shortFormVersion, string longFormVersion = default);
member this.VersionOption : string * string * string -> Microsoft.Extensions.CommandLineUtils.CommandOption
Public Function VersionOption (template As String, shortFormVersion As String, Optional longFormVersion As String = Nothing) As CommandOption
Parameters
- template
- String
- shortFormVersion
- String
- longFormVersion
- String
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for