共用方式為


OptionExtensions.ExistingOnly 方法

定義

多載

ExistingOnly(Option<DirectoryInfo>)

設定只接受對應至現有目錄之值的選項。

ExistingOnly(Option<FileInfo>)

設定選項,只接受對應至現有檔案的值。

ExistingOnly(Option<FileSystemInfo>)

設定選項,只接受對應至現有檔案或目錄的值。

ExistingOnly<T>(Option<T>)

設定只接受對應至現有檔案或目錄之值的選項。

ExistingOnly(Option<DirectoryInfo>)

設定只接受對應至現有目錄之值的選項。

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)

參數

option
Option<DirectoryInfo>

要設定的選項。

傳回

要擴充的選項。

適用於

ExistingOnly(Option<FileInfo>)

設定選項,只接受對應至現有檔案的值。

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)

參數

option
Option<FileInfo>

要設定的選項。

傳回

要擴充的選項。

適用於

ExistingOnly(Option<FileSystemInfo>)

設定選項,只接受對應至現有檔案或目錄的值。

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)

參數

option
Option<FileSystemInfo>

要設定的選項。

傳回

要擴充的選項。

適用於

ExistingOnly<T>(Option<T>)

設定只接受對應至現有檔案或目錄之值的選項。

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)

類型參數

T

參數

option
Option<T>

要設定的選項。

傳回

要擴充的選項。

適用於