OptionExtensions.ExistingOnly Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| ExistingOnly(Option<DirectoryInfo>) |
Configure une option pour accepter uniquement les valeurs correspondant à un répertoire existant. |
| ExistingOnly(Option<FileInfo>) |
Configure une option pour accepter uniquement les valeurs correspondant à un fichier existant. |
| ExistingOnly(Option<FileSystemInfo>) |
Configure une option pour accepter uniquement les valeurs correspondant à un fichier ou répertoire existant. |
| ExistingOnly<T>(Option<T>) |
Configure une option pour accepter uniquement les valeurs correspondant à des fichiers ou répertoires existants. |
ExistingOnly(Option<DirectoryInfo>)
Configure une option pour accepter uniquement les valeurs correspondant à un répertoire existant.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<System::IO::DirectoryInfo ^> ^ ExistingOnly(System::CommandLine::Option<System::IO::DirectoryInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.DirectoryInfo> ExistingOnly (this System.CommandLine.Option<System.IO.DirectoryInfo> option);
static member ExistingOnly : System.CommandLine.Option<System.IO.DirectoryInfo> -> System.CommandLine.Option<System.IO.DirectoryInfo>
<Extension()>
Public Function ExistingOnly (option As Option(Of DirectoryInfo)) As Option(Of DirectoryInfo)
Paramètres
- option
- Option<DirectoryInfo>
Option à configurer.
Retours
Option étendue.
S’applique à
ExistingOnly(Option<FileInfo>)
Configure une option pour accepter uniquement les valeurs correspondant à un fichier existant.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<System::IO::FileInfo ^> ^ ExistingOnly(System::CommandLine::Option<System::IO::FileInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.FileInfo> ExistingOnly (this System.CommandLine.Option<System.IO.FileInfo> option);
static member ExistingOnly : System.CommandLine.Option<System.IO.FileInfo> -> System.CommandLine.Option<System.IO.FileInfo>
<Extension()>
Public Function ExistingOnly (option As Option(Of FileInfo)) As Option(Of FileInfo)
Paramètres
Retours
Option étendue.
S’applique à
ExistingOnly(Option<FileSystemInfo>)
Configure une option pour accepter uniquement les valeurs correspondant à un fichier ou répertoire existant.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<System::IO::FileSystemInfo ^> ^ ExistingOnly(System::CommandLine::Option<System::IO::FileSystemInfo ^> ^ option);
public static System.CommandLine.Option<System.IO.FileSystemInfo> ExistingOnly (this System.CommandLine.Option<System.IO.FileSystemInfo> option);
static member ExistingOnly : System.CommandLine.Option<System.IO.FileSystemInfo> -> System.CommandLine.Option<System.IO.FileSystemInfo>
<Extension()>
Public Function ExistingOnly (option As Option(Of FileSystemInfo)) As Option(Of FileSystemInfo)
Paramètres
- option
- Option<FileSystemInfo>
Option à configurer.
Retours
Option étendue.
S’applique à
ExistingOnly<T>(Option<T>)
Configure une option pour accepter uniquement les valeurs correspondant à des fichiers ou répertoires existants.
public:
generic <typename T>
where T : System::Collections::Generic::IEnumerable<System::IO::FileSystemInfo ^>[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Option<T> ^ ExistingOnly(System::CommandLine::Option<T> ^ option);
public static System.CommandLine.Option<T> ExistingOnly<T> (this System.CommandLine.Option<T> option) where T : System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo>;
static member ExistingOnly : System.CommandLine.Option<#seq<System.IO.FileSystemInfo>> -> System.CommandLine.Option<#seq<System.IO.FileSystemInfo>>
<Extension()>
Public Function ExistingOnly(Of T As IEnumerable(Of FileSystemInfo)) (option As Option(Of T)) As Option(Of T)
Paramètres de type
- T
Paramètres
- option
- Option<T>
Option à configurer.
Retours
Option étendue.