OptionValidation.AcceptExistingOnly Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| AcceptExistingOnly(Option<DirectoryInfo>) |
Konfigurerar ett alternativ för att endast acceptera värden som motsvarar en befintlig katalog. |
| AcceptExistingOnly(Option<FileInfo>) |
Konfigurerar ett alternativ för att endast acceptera värden som motsvarar en befintlig fil. |
| AcceptExistingOnly(Option<FileSystemInfo>) |
Konfigurerar ett alternativ för att endast acceptera värden som motsvarar en befintlig fil eller katalog. |
| AcceptExistingOnly<T>(Option<T>) |
Konfigurerar ett alternativ för att endast acceptera värden som motsvarar befintliga filer eller kataloger. |
AcceptExistingOnly(Option<DirectoryInfo>)
- Källa:
- OptionValidation.cs
- Källa:
- OptionValidation.cs
Konfigurerar ett alternativ för att endast acceptera värden som motsvarar en befintlig katalog.
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)
Parametrar
- option
- Option<DirectoryInfo>
Alternativet att konfigurera.
Returer
Alternativet utökas.
Gäller för
AcceptExistingOnly(Option<FileInfo>)
- Källa:
- OptionValidation.cs
- Källa:
- OptionValidation.cs
Konfigurerar ett alternativ för att endast acceptera värden som motsvarar en befintlig fil.
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)
Parametrar
Returer
Alternativet utökas.
Gäller för
AcceptExistingOnly(Option<FileSystemInfo>)
- Källa:
- OptionValidation.cs
- Källa:
- OptionValidation.cs
Konfigurerar ett alternativ för att endast acceptera värden som motsvarar en befintlig fil eller katalog.
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)
Parametrar
- option
- Option<FileSystemInfo>
Alternativet att konfigurera.
Returer
Alternativet utökas.
Gäller för
AcceptExistingOnly<T>(Option<T>)
- Källa:
- OptionValidation.cs
- Källa:
- OptionValidation.cs
Konfigurerar ett alternativ för att endast acceptera värden som motsvarar befintliga filer eller kataloger.
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)
Typparametrar
- T
Parametrar
- option
- Option<T>
Alternativet att konfigurera.
Returer
Alternativet utökas.