ArgumentValidation.AcceptExistingOnly 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
AcceptExistingOnly(Argument<DirectoryInfo>) | |
AcceptExistingOnly(Argument<FileInfo>) | |
AcceptExistingOnly(Argument<FileSystemInfo>) | |
AcceptExistingOnly<T>(Argument<T>) |
AcceptExistingOnly(Argument<DirectoryInfo>)
- Source:
- ArgumentValidation.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Argument<System::IO::DirectoryInfo ^> ^ AcceptExistingOnly(System::CommandLine::Argument<System::IO::DirectoryInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.DirectoryInfo> AcceptExistingOnly(this System.CommandLine.Argument<System.IO.DirectoryInfo> argument);
static member AcceptExistingOnly : System.CommandLine.Argument<System.IO.DirectoryInfo> -> System.CommandLine.Argument<System.IO.DirectoryInfo>
<Extension()>
Public Function AcceptExistingOnly (argument As Argument(Of DirectoryInfo)) As Argument(Of DirectoryInfo)
Parameters
- argument
- Argument<DirectoryInfo>
Returns
Applies to
AcceptExistingOnly(Argument<FileInfo>)
- Source:
- ArgumentValidation.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Argument<System::IO::FileInfo ^> ^ AcceptExistingOnly(System::CommandLine::Argument<System::IO::FileInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.FileInfo> AcceptExistingOnly(this System.CommandLine.Argument<System.IO.FileInfo> argument);
static member AcceptExistingOnly : System.CommandLine.Argument<System.IO.FileInfo> -> System.CommandLine.Argument<System.IO.FileInfo>
<Extension()>
Public Function AcceptExistingOnly (argument As Argument(Of FileInfo)) As Argument(Of FileInfo)
Parameters
Returns
Applies to
AcceptExistingOnly(Argument<FileSystemInfo>)
- Source:
- ArgumentValidation.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Argument<System::IO::FileSystemInfo ^> ^ AcceptExistingOnly(System::CommandLine::Argument<System::IO::FileSystemInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.FileSystemInfo> AcceptExistingOnly(this System.CommandLine.Argument<System.IO.FileSystemInfo> argument);
static member AcceptExistingOnly : System.CommandLine.Argument<System.IO.FileSystemInfo> -> System.CommandLine.Argument<System.IO.FileSystemInfo>
<Extension()>
Public Function AcceptExistingOnly (argument As Argument(Of FileSystemInfo)) As Argument(Of FileSystemInfo)
Parameters
- argument
- Argument<FileSystemInfo>
Returns
Applies to
AcceptExistingOnly<T>(Argument<T>)
- Source:
- ArgumentValidation.cs
public:
generic <typename T>
where T : System::Collections::Generic::IEnumerable<System::IO::FileSystemInfo ^>[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Argument<T> ^ AcceptExistingOnly(System::CommandLine::Argument<T> ^ argument);
public static System.CommandLine.Argument<T> AcceptExistingOnly<T>(this System.CommandLine.Argument<T> argument) where T : System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo>;
static member AcceptExistingOnly : System.CommandLine.Argument<#seq<System.IO.FileSystemInfo>> -> System.CommandLine.Argument<#seq<System.IO.FileSystemInfo>>
<Extension()>
Public Function AcceptExistingOnly(Of T As IEnumerable(Of FileSystemInfo)) (argument As Argument(Of T)) As Argument(Of T)
Type Parameters
- T
Parameters
- argument
- Argument<T>