OptionValidation.AcceptExistingOnly Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Name | Description |
|---|---|
| AcceptExistingOnly(Option<DirectoryInfo>) |
Hiermee configureert u een optie om alleen waarden te accepteren die overeenkomen met een bestaande map. |
| AcceptExistingOnly(Option<FileInfo>) |
Hiermee configureert u een optie om alleen waarden te accepteren die overeenkomen met een bestaand bestand. |
| AcceptExistingOnly(Option<FileSystemInfo>) |
Hiermee configureert u een optie om alleen waarden te accepteren die overeenkomen met een bestaand bestand of een bestaande map. |
| AcceptExistingOnly<T>(Option<T>) |
Hiermee configureert u een optie om alleen waarden te accepteren die overeenkomen met bestaande bestanden of mappen. |
AcceptExistingOnly(Option<DirectoryInfo>)
- Bron:
- OptionValidation.cs
- Bron:
- OptionValidation.cs
Hiermee configureert u een optie om alleen waarden te accepteren die overeenkomen met een bestaande map.
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)
Parameters
- option
- Option<DirectoryInfo>
De optie om te configureren.
Retouren
De optie wordt uitgebreid.
Van toepassing op
AcceptExistingOnly(Option<FileInfo>)
- Bron:
- OptionValidation.cs
- Bron:
- OptionValidation.cs
Hiermee configureert u een optie om alleen waarden te accepteren die overeenkomen met een bestaand bestand.
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)
Parameters
Retouren
De optie wordt uitgebreid.
Van toepassing op
AcceptExistingOnly(Option<FileSystemInfo>)
- Bron:
- OptionValidation.cs
- Bron:
- OptionValidation.cs
Hiermee configureert u een optie om alleen waarden te accepteren die overeenkomen met een bestaand bestand of een bestaande map.
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)
Parameters
- option
- Option<FileSystemInfo>
De optie om te configureren.
Retouren
De optie wordt uitgebreid.
Van toepassing op
AcceptExistingOnly<T>(Option<T>)
- Bron:
- OptionValidation.cs
- Bron:
- OptionValidation.cs
Hiermee configureert u een optie om alleen waarden te accepteren die overeenkomen met bestaande bestanden of mappen.
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)
Type parameters
- T
Parameters
- option
- Option<T>
De optie om te configureren.
Retouren
De optie wordt uitgebreid.