OptionExtensions.ExistingOnly Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ExistingOnly(Option<DirectoryInfo>) |
Configures an option to accept only values corresponding to an existing directory. |
ExistingOnly(Option<FileInfo>) |
Configures an option to accept only values corresponding to an existing file. |
ExistingOnly(Option<FileSystemInfo>) |
Configures an option to accept only values corresponding to an existing file or directory. |
ExistingOnly<T>(Option<T>) |
Configures an option to accept only values corresponding to a existing files or directories. |
ExistingOnly(Option<DirectoryInfo>)
Configures an option to accept only values corresponding to an existing directory.
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)
Parameters
- option
- Option<DirectoryInfo>
The option to configure.
Returns
The option being extended.
Applies to
ExistingOnly(Option<FileInfo>)
Configures an option to accept only values corresponding to an existing file.
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)
Parameters
Returns
The option being extended.
Applies to
ExistingOnly(Option<FileSystemInfo>)
Configures an option to accept only values corresponding to an existing file or directory.
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)
Parameters
- option
- Option<FileSystemInfo>
The option to configure.
Returns
The option being extended.
Applies to
ExistingOnly<T>(Option<T>)
Configures an option to accept only values corresponding to a existing files or directories.
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)
Type Parameters
- T
Parameters
- option
- Option<T>
The option to configure.
Returns
The option being extended.