ArgumentValidation.AcceptExistingOnly 方法

定義

多載

名稱 Description
AcceptExistingOnly(Argument<DirectoryInfo>)

設定參數只接受與現有目錄對應的值。

AcceptExistingOnly(Argument<FileInfo>)

設定參數只接受與現有檔案對應的值。

AcceptExistingOnly(Argument<FileSystemInfo>)

設定參數只接受與現有檔案或目錄對應的值。

AcceptExistingOnly<T>(Argument<T>)

設定參數只接受與現有檔案或目錄對應的值。

AcceptExistingOnly(Argument<DirectoryInfo>)

來源:
ArgumentValidation.cs
來源:
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)

參數

argument
Argument<DirectoryInfo>

要設定的論點。

傳回

配置論證。

適用於

AcceptExistingOnly(Argument<FileInfo>)

來源:
ArgumentValidation.cs
來源:
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)

參數

argument
Argument<FileInfo>

要設定的論點。

傳回

配置論證。

適用於

AcceptExistingOnly(Argument<FileSystemInfo>)

來源:
ArgumentValidation.cs
來源:
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)

參數

argument
Argument<FileSystemInfo>

要設定的論點。

傳回

配置論證。

適用於

AcceptExistingOnly<T>(Argument<T>)

來源:
ArgumentValidation.cs
來源:
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)

類型參數

T

參數

argument
Argument<T>

要設定的論點。

傳回

配置論證。

適用於