Edit

Share via


ArgumentValidation Class

Definition

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.

Applies to