語言

ArgumentValidation.AcceptLegalFilePathsOnly<T> 方法

定義

將參數設定為只接受代表合法檔案路徑的值。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Argument<T> ^ AcceptLegalFilePathsOnly(System::CommandLine::Argument<T> ^ argument);
public static System.CommandLine.Argument<T> AcceptLegalFilePathsOnly<T>(this System.CommandLine.Argument<T> argument);
static member AcceptLegalFilePathsOnly : System.CommandLine.Argument<'T> -> System.CommandLine.Argument<'T>
<Extension()>
Public Function AcceptLegalFilePathsOnly(Of T) (argument As Argument(Of T)) As Argument(Of T)

類型參數

T

參數

argument
Argument<T>

傳回

適用於