Udostępnij przez


OptionExtensions.ExistingOnly Metoda

Definicja

Przeciążenia

ExistingOnly(Option<DirectoryInfo>)

Konfiguruje opcję akceptowania tylko wartości odpowiadających istniejącemu katalogowi.

ExistingOnly(Option<FileInfo>)

Konfiguruje opcję akceptowania tylko wartości odpowiadających istniejącemu plikowi.

ExistingOnly(Option<FileSystemInfo>)

Konfiguruje opcję akceptowania tylko wartości odpowiadających istniejącemu plikowi lub katalogowi.

ExistingOnly<T>(Option<T>)

Konfiguruje opcję akceptowania tylko wartości odpowiadających istniejącym plikom lub katalogom.

ExistingOnly(Option<DirectoryInfo>)

Konfiguruje opcję akceptowania tylko wartości odpowiadających istniejącemu katalogowi.

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)

Parametry

option
Option<DirectoryInfo>

Opcja konfigurowania.

Zwraca

Opcja jest rozszerzana.

Dotyczy

ExistingOnly(Option<FileInfo>)

Konfiguruje opcję akceptowania tylko wartości odpowiadających istniejącemu plikowi.

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)

Parametry

option
Option<FileInfo>

Opcja konfigurowania.

Zwraca

Opcja jest rozszerzana.

Dotyczy

ExistingOnly(Option<FileSystemInfo>)

Konfiguruje opcję akceptowania tylko wartości odpowiadających istniejącemu plikowi lub katalogowi.

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)

Parametry

option
Option<FileSystemInfo>

Opcja konfigurowania.

Zwraca

Opcja jest rozszerzana.

Dotyczy

ExistingOnly<T>(Option<T>)

Konfiguruje opcję akceptowania tylko wartości odpowiadających istniejącym plikom lub katalogom.

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)

Parametry typu

T

Parametry

option
Option<T>

Opcja konfigurowania.

Zwraca

Opcja jest rozszerzana.

Dotyczy