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>

要配置的选项。

返回

正在扩展的选项。

适用于