Option<T>
Option(String, String[])
CustomParser
DefaultValueFactory
ValueType
AcceptLegalFileNamesOnly()
AcceptLegalFilePathsOnly()
AcceptOnlyFromAmong(String[])
AcceptExistingOnly(Option<DirectoryInfo>)
AcceptExistingOnly(Option<FileInfo>)
AcceptExistingOnly(Option<FileSystemInfo>)
AcceptExistingOnly<T>(Option<T>)
net10.0
namespace System.CommandLine
{
public class Option<T> : Option
{
public Func<ArgumentResult!, T>? CustomParser { get; set; }
}
}
| nuget.org | 0.0 % Reference this API 0.0 % Set property |
|---|---|
| .NET | 8.09.010.0 |
Information specific to net10.0 | |
| Assembly | System.CommandLine , Version=2.0.1.0, PublicKeyToken=31bf3856ad364e35 |
| Referencing | Your project needs a package reference to |
| Package | System.CommandLine (2.0.1) net8.0 |
| Platform Restrictions | The property getter is supported on all platforms. The property setter is supported on all platforms. |
- Built-in API
- Package-provided API