Share via


ArgumentExtensions.ExistingOnly Metoda

Definice

Přetížení

ExistingOnly(Argument<DirectoryInfo>)

Nakonfiguruje argument tak, aby přijímal pouze hodnoty odpovídající existujícímu adresáři.

ExistingOnly(Argument<FileInfo>)

Nakonfiguruje argument tak, aby přijímal pouze hodnoty odpovídající existujícímu souboru.

ExistingOnly(Argument<FileSystemInfo>)

Nakonfiguruje argument tak, aby přijímal pouze hodnoty odpovídající existujícímu souboru nebo adresáři.

ExistingOnly<T>(Argument<T>)

Nakonfiguruje argument tak, aby přijímal pouze hodnoty odpovídající existujícím souborům nebo adresářům.

ExistingOnly(Argument<DirectoryInfo>)

Nakonfiguruje argument tak, aby přijímal pouze hodnoty odpovídající existujícímu adresáři.

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)

Parametry

argument
Argument<DirectoryInfo>

Argument, který se má nakonfigurovat.

Návraty

Nakonfigurovaný argument.

Platí pro

ExistingOnly(Argument<FileInfo>)

Nakonfiguruje argument tak, aby přijímal pouze hodnoty odpovídající existujícímu souboru.

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)

Parametry

argument
Argument<FileInfo>

Argument, který se má nakonfigurovat.

Návraty

Nakonfigurovaný argument.

Platí pro

ExistingOnly(Argument<FileSystemInfo>)

Nakonfiguruje argument tak, aby přijímal pouze hodnoty odpovídající existujícímu souboru nebo adresáři.

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)

Parametry

argument
Argument<FileSystemInfo>

Argument, který se má nakonfigurovat.

Návraty

Nakonfigurovaný argument.

Platí pro

ExistingOnly<T>(Argument<T>)

Nakonfiguruje argument tak, aby přijímal pouze hodnoty odpovídající existujícím souborům nebo adresářům.

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)

Parametry typu

T

Parametry

argument
Argument<T>

Argument, který se má nakonfigurovat.

Návraty

Nakonfigurovaný argument.

Platí pro