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>

返回

适用于