Editare

Partajați prin


ArgumentExtensions.ExistingOnly Method

Definition

Overloads

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.

ExistingOnly(Argument<DirectoryInfo>)

Configures an argument to accept only values corresponding to an existing directory.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Argument<System::IO::DirectoryInfo ^> ^ ExistingOnly(System::CommandLine::Argument<System::IO::DirectoryInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.DirectoryInfo> ExistingOnly (this System.CommandLine.Argument<System.IO.DirectoryInfo> argument);
static member ExistingOnly : System.CommandLine.Argument<System.IO.DirectoryInfo> -> System.CommandLine.Argument<System.IO.DirectoryInfo>
<Extension()>
Public Function ExistingOnly (argument As Argument(Of DirectoryInfo)) As Argument(Of DirectoryInfo)

Parameters

argument
Argument<DirectoryInfo>

The argument to configure.

Returns

The configured argument.

Applies to

ExistingOnly(Argument<FileInfo>)

Configures an argument to accept only values corresponding to an existing file.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Argument<System::IO::FileInfo ^> ^ ExistingOnly(System::CommandLine::Argument<System::IO::FileInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.FileInfo> ExistingOnly (this System.CommandLine.Argument<System.IO.FileInfo> argument);
static member ExistingOnly : System.CommandLine.Argument<System.IO.FileInfo> -> System.CommandLine.Argument<System.IO.FileInfo>
<Extension()>
Public Function ExistingOnly (argument As Argument(Of FileInfo)) As Argument(Of FileInfo)

Parameters

argument
Argument<FileInfo>

The argument to configure.

Returns

The configured argument.

Applies to

ExistingOnly(Argument<FileSystemInfo>)

Configures an argument to accept only values corresponding to an existing file or directory.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Argument<System::IO::FileSystemInfo ^> ^ ExistingOnly(System::CommandLine::Argument<System::IO::FileSystemInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.FileSystemInfo> ExistingOnly (this System.CommandLine.Argument<System.IO.FileSystemInfo> argument);
static member ExistingOnly : System.CommandLine.Argument<System.IO.FileSystemInfo> -> System.CommandLine.Argument<System.IO.FileSystemInfo>
<Extension()>
Public Function ExistingOnly (argument As Argument(Of FileSystemInfo)) As Argument(Of FileSystemInfo)

Parameters

argument
Argument<FileSystemInfo>

The argument to configure.

Returns

The configured argument.

Applies to

ExistingOnly<T>(Argument<T>)

Configures an argument to accept only values corresponding to a existing files or directories.

public:
generic <typename T>
 where T : System::Collections::Generic::IEnumerable<System::IO::FileSystemInfo ^>[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Argument<T> ^ ExistingOnly(System::CommandLine::Argument<T> ^ argument);
public static System.CommandLine.Argument<T> ExistingOnly<T> (this System.CommandLine.Argument<T> argument) where T : System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo>;
static member ExistingOnly : System.CommandLine.Argument<#seq<System.IO.FileSystemInfo>> -> System.CommandLine.Argument<#seq<System.IO.FileSystemInfo>>
<Extension()>
Public Function ExistingOnly(Of T As IEnumerable(Of FileSystemInfo)) (argument As Argument(Of T)) As Argument(Of T)

Type Parameters

T

Parameters

argument
Argument<T>

The argument to configure.

Returns

The configured argument.

Applies to