OptionValidation.AcceptExistingOnly Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| Name | Description |
|---|---|
| AcceptExistingOnly(Option<DirectoryInfo>) |
Nakonfiguruje možnost přijmout pouze hodnoty odpovídající existujícímu adresáři. |
| AcceptExistingOnly(Option<FileInfo>) |
Nakonfiguruje možnost přijmout pouze hodnoty odpovídající existujícímu souboru. |
| AcceptExistingOnly(Option<FileSystemInfo>) |
Nakonfiguruje možnost přijmout pouze hodnoty odpovídající existujícímu souboru nebo adresáři. |
| AcceptExistingOnly<T>(Option<T>) |
Nakonfiguruje možnost přijmout pouze hodnoty odpovídající existujícím souborům nebo adresářům. |
AcceptExistingOnly(Option<DirectoryInfo>)
- Zdroj:
- OptionValidation.cs
- Zdroj:
- OptionValidation.cs
Nakonfiguruje možnost přijmout pouze hodnoty odpovídající existujícímu adresáři.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<System::IO::DirectoryInfo ^> ^ AcceptExistingOnly(System::CommandLine::Option<System::IO::DirectoryInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.DirectoryInfo> AcceptExistingOnly(this System.CommandLine.Option<System.IO.DirectoryInfo> option);
static member AcceptExistingOnly : System.CommandLine.Option<System.IO.DirectoryInfo> -> System.CommandLine.Option<System.IO.DirectoryInfo>
<Extension()>
Public Function AcceptExistingOnly (option As Option(Of DirectoryInfo)) As Option(Of DirectoryInfo)
Parametry
- option
- Option<DirectoryInfo>
Možnost konfigurace.
Návraty
Možnost, která se rozšiřuje.
Platí pro
AcceptExistingOnly(Option<FileInfo>)
- Zdroj:
- OptionValidation.cs
- Zdroj:
- OptionValidation.cs
Nakonfiguruje možnost přijmout pouze hodnoty odpovídající existujícímu souboru.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<System::IO::FileInfo ^> ^ AcceptExistingOnly(System::CommandLine::Option<System::IO::FileInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.FileInfo> AcceptExistingOnly(this System.CommandLine.Option<System.IO.FileInfo> option);
static member AcceptExistingOnly : System.CommandLine.Option<System.IO.FileInfo> -> System.CommandLine.Option<System.IO.FileInfo>
<Extension()>
Public Function AcceptExistingOnly (option As Option(Of FileInfo)) As Option(Of FileInfo)
Parametry
Návraty
Možnost, která se rozšiřuje.
Platí pro
AcceptExistingOnly(Option<FileSystemInfo>)
- Zdroj:
- OptionValidation.cs
- Zdroj:
- OptionValidation.cs
Nakonfiguruje možnost přijmout pouze hodnoty odpovídající existujícímu souboru nebo adresáři.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<System::IO::FileSystemInfo ^> ^ AcceptExistingOnly(System::CommandLine::Option<System::IO::FileSystemInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.FileSystemInfo> AcceptExistingOnly(this System.CommandLine.Option<System.IO.FileSystemInfo> option);
static member AcceptExistingOnly : System.CommandLine.Option<System.IO.FileSystemInfo> -> System.CommandLine.Option<System.IO.FileSystemInfo>
<Extension()>
Public Function AcceptExistingOnly (option As Option(Of FileSystemInfo)) As Option(Of FileSystemInfo)
Parametry
- option
- Option<FileSystemInfo>
Možnost konfigurace.
Návraty
Možnost, která se rozšiřuje.
Platí pro
AcceptExistingOnly<T>(Option<T>)
- Zdroj:
- OptionValidation.cs
- Zdroj:
- OptionValidation.cs
Nakonfiguruje možnost přijmout 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::Option<T> ^ AcceptExistingOnly(System::CommandLine::Option<T> ^ option);
public static System.CommandLine.Option<T> AcceptExistingOnly<T>(this System.CommandLine.Option<T> option) where T : System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo>;
static member AcceptExistingOnly : System.CommandLine.Option<#seq<System.IO.FileSystemInfo>> -> System.CommandLine.Option<#seq<System.IO.FileSystemInfo>>
<Extension()>
Public Function AcceptExistingOnly(Of T As IEnumerable(Of FileSystemInfo)) (option As Option(Of T)) As Option(Of T)
Parametry typu
- T
Parametry
- option
- Option<T>
Možnost konfigurace.
Návraty
Možnost, která se rozšiřuje.