ArgumentValidation 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 ArgumentValidation abstract sealed
public static class ArgumentValidation
type ArgumentValidation = class
Public Module ArgumentValidation
- Inheritance
-
ArgumentValidation
Methods
| AcceptExistingOnly(Argument<DirectoryInfo>) |
Configures an argument to accept only values corresponding to an existing directory. |
| AcceptExistingOnly(Argument<FileInfo>) |
Configures an argument to accept only values corresponding to an existing file. |
| AcceptExistingOnly(Argument<FileSystemInfo>) |
Configures an argument to accept only values corresponding to an existing file or directory. |
| AcceptExistingOnly<T>(Argument<T>) |
Configures an argument to accept only values corresponding to a existing files or directories. |
| AcceptLegalFileNamesOnly<T>(Argument<T>) |
Configures the argument to accept only values representing legal file names. |
| AcceptLegalFilePathsOnly<T>(Argument<T>) |
Configures the argument to accept only values representing legal file paths. |
| AcceptOnlyFromAmong<T>(Argument<T>, String[]) |
Configures the argument to accept only the specified values, and to suggest them as command line completions. |