ArgumentValidation.AcceptExistingOnly Metoda

Definice

Přetížení

Name Description
AcceptExistingOnly(Argument<DirectoryInfo>)

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

AcceptExistingOnly(Argument<FileInfo>)

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

AcceptExistingOnly(Argument<FileSystemInfo>)

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

AcceptExistingOnly<T>(Argument<T>)

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

AcceptExistingOnly(Argument<DirectoryInfo>)

Zdroj:
ArgumentValidation.cs
Zdroj:
ArgumentValidation.cs

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 ^> ^ AcceptExistingOnly(System::CommandLine::Argument<System::IO::DirectoryInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.DirectoryInfo> AcceptExistingOnly(this System.CommandLine.Argument<System.IO.DirectoryInfo> argument);
static member AcceptExistingOnly : System.CommandLine.Argument<System.IO.DirectoryInfo> -> System.CommandLine.Argument<System.IO.DirectoryInfo>
<Extension()>
Public Function AcceptExistingOnly (argument As Argument(Of DirectoryInfo)) As Argument(Of DirectoryInfo)

Parametry

argument
Argument<DirectoryInfo>

Argument, který se má konfigurovat.

Návraty

Nakonfigurovaný argument.

Platí pro

AcceptExistingOnly(Argument<FileInfo>)

Zdroj:
ArgumentValidation.cs
Zdroj:
ArgumentValidation.cs

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 ^> ^ AcceptExistingOnly(System::CommandLine::Argument<System::IO::FileInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.FileInfo> AcceptExistingOnly(this System.CommandLine.Argument<System.IO.FileInfo> argument);
static member AcceptExistingOnly : System.CommandLine.Argument<System.IO.FileInfo> -> System.CommandLine.Argument<System.IO.FileInfo>
<Extension()>
Public Function AcceptExistingOnly (argument As Argument(Of FileInfo)) As Argument(Of FileInfo)

Parametry

argument
Argument<FileInfo>

Argument, který se má konfigurovat.

Návraty

Nakonfigurovaný argument.

Platí pro

AcceptExistingOnly(Argument<FileSystemInfo>)

Zdroj:
ArgumentValidation.cs
Zdroj:
ArgumentValidation.cs

Konfiguruje 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 ^> ^ AcceptExistingOnly(System::CommandLine::Argument<System::IO::FileSystemInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.FileSystemInfo> AcceptExistingOnly(this System.CommandLine.Argument<System.IO.FileSystemInfo> argument);
static member AcceptExistingOnly : System.CommandLine.Argument<System.IO.FileSystemInfo> -> System.CommandLine.Argument<System.IO.FileSystemInfo>
<Extension()>
Public Function AcceptExistingOnly (argument As Argument(Of FileSystemInfo)) As Argument(Of FileSystemInfo)

Parametry

argument
Argument<FileSystemInfo>

Argument, který se má konfigurovat.

Návraty

Nakonfigurovaný argument.

Platí pro

AcceptExistingOnly<T>(Argument<T>)

Zdroj:
ArgumentValidation.cs
Zdroj:
ArgumentValidation.cs

Konfiguruje 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> ^ AcceptExistingOnly(System::CommandLine::Argument<T> ^ argument);
public static System.CommandLine.Argument<T> AcceptExistingOnly<T>(this System.CommandLine.Argument<T> argument) where T : System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo>;
static member AcceptExistingOnly : System.CommandLine.Argument<#seq<System.IO.FileSystemInfo>> -> System.CommandLine.Argument<#seq<System.IO.FileSystemInfo>>
<Extension()>
Public Function AcceptExistingOnly(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á konfigurovat.

Návraty

Nakonfigurovaný argument.

Platí pro