ArgumentExtensions.ExistingOnly 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ExistingOnly(Argument<DirectoryInfo>) |
将参数配置为仅接受与现有目录对应的值。 |
ExistingOnly(Argument<FileInfo>) |
将参数配置为仅接受与现有文件对应的值。 |
ExistingOnly(Argument<FileSystemInfo>) |
将参数配置为仅接受与现有文件或目录对应的值。 |
ExistingOnly<T>(Argument<T>) |
将参数配置为仅接受与现有文件或目录对应的值。 |
ExistingOnly(Argument<DirectoryInfo>)
将参数配置为仅接受与现有目录对应的值。
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Argument<System::IO::DirectoryInfo ^> ^ ExistingOnly(System::CommandLine::Argument<System::IO::DirectoryInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.DirectoryInfo> ExistingOnly (this System.CommandLine.Argument<System.IO.DirectoryInfo> argument);
static member ExistingOnly : System.CommandLine.Argument<System.IO.DirectoryInfo> -> System.CommandLine.Argument<System.IO.DirectoryInfo>
<Extension()>
Public Function ExistingOnly (argument As Argument(Of DirectoryInfo)) As Argument(Of DirectoryInfo)
参数
- argument
- Argument<DirectoryInfo>
要配置的参数。
返回
配置的参数。
适用于
ExistingOnly(Argument<FileInfo>)
将参数配置为仅接受与现有文件对应的值。
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Argument<System::IO::FileInfo ^> ^ ExistingOnly(System::CommandLine::Argument<System::IO::FileInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.FileInfo> ExistingOnly (this System.CommandLine.Argument<System.IO.FileInfo> argument);
static member ExistingOnly : System.CommandLine.Argument<System.IO.FileInfo> -> System.CommandLine.Argument<System.IO.FileInfo>
<Extension()>
Public Function ExistingOnly (argument As Argument(Of FileInfo)) As Argument(Of FileInfo)
参数
返回
配置的参数。
适用于
ExistingOnly(Argument<FileSystemInfo>)
将参数配置为仅接受与现有文件或目录对应的值。
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Argument<System::IO::FileSystemInfo ^> ^ ExistingOnly(System::CommandLine::Argument<System::IO::FileSystemInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.FileSystemInfo> ExistingOnly (this System.CommandLine.Argument<System.IO.FileSystemInfo> argument);
static member ExistingOnly : System.CommandLine.Argument<System.IO.FileSystemInfo> -> System.CommandLine.Argument<System.IO.FileSystemInfo>
<Extension()>
Public Function ExistingOnly (argument As Argument(Of FileSystemInfo)) As Argument(Of FileSystemInfo)
参数
- argument
- Argument<FileSystemInfo>
要配置的参数。
返回
配置的参数。
适用于
ExistingOnly<T>(Argument<T>)
将参数配置为仅接受与现有文件或目录对应的值。
public:
generic <typename T>
where T : System::Collections::Generic::IEnumerable<System::IO::FileSystemInfo ^>[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Argument<T> ^ ExistingOnly(System::CommandLine::Argument<T> ^ argument);
public static System.CommandLine.Argument<T> ExistingOnly<T> (this System.CommandLine.Argument<T> argument) where T : System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo>;
static member ExistingOnly : System.CommandLine.Argument<#seq<System.IO.FileSystemInfo>> -> System.CommandLine.Argument<#seq<System.IO.FileSystemInfo>>
<Extension()>
Public Function ExistingOnly(Of T As IEnumerable(Of FileSystemInfo)) (argument As Argument(Of T)) As Argument(Of T)
类型参数
- T
参数
- argument
- Argument<T>
要配置的参数。
返回
配置的参数。