ArgumentExtensions Class
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.
Provides extension methods for Argument.
public ref class ArgumentExtensions abstract sealed
public static class ArgumentExtensions
type ArgumentExtensions = class
Public Module ArgumentExtensions
- Inheritance
-
ArgumentExtensions
Methods
AddCompletions<TArgument>(TArgument, CompletionDelegate) |
Adds completions for an argument. |
AddCompletions<TArgument>(TArgument, Func<CompletionContext,IEnumerable<String>>) |
Adds completions for an option. |
AddCompletions<TArgument>(TArgument, String[]) |
Adds completions for an argument. |
ExistingOnly(Argument<DirectoryInfo>) |
Configures an argument to accept only values corresponding to an existing directory. |
ExistingOnly(Argument<FileInfo>) |
Configures an argument to accept only values corresponding to an existing file. |
ExistingOnly(Argument<FileSystemInfo>) |
Configures an argument to accept only values corresponding to an existing file or directory. |
ExistingOnly<T>(Argument<T>) |
Configures an argument to accept only values corresponding to a existing files or directories. |
FromAmong<TArgument>(TArgument, String[]) |
Configures an argument to accept only the specified values, and to suggest them as command line completions. |
LegalFileNamesOnly<TArgument>(TArgument) |
Configures an argument to accept only values representing legal file names. |
LegalFilePathsOnly<TArgument>(TArgument) |
Configures an argument to accept only values representing legal file paths. |
Parse(Argument, String) |
Parses a command line string value using an argument. |
Parse(Argument, String[]) |
Parses a command line string value using an argument. |