ArgumentValidation.AcceptLegalFileNamesOnly<T> Método

Definición

Configura el argumento para aceptar solo valores que representen nombres de archivo legales.

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

Parámetros de tipo

T

Parámetros

argument
Argument<T>

Devoluciones

Comentarios

Se producirá un error de análisis, por ejemplo, si se encuentran separadores de ruta de acceso de archivo en el valor analizado.

Se aplica a