Idioma

ArgumentValidation.AcceptLegalFileNamesOnly<T> Método

Definição

Configura o argumento para aceitar apenas valores que representam nomes legais de ficheiros.

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 Genérico

T

Parâmetros

argument
Argument<T>

Devoluções

Observações

Um erro de análise resultará, por exemplo, se forem encontrados separadores de caminho de ficheiro no valor analisado.

Aplica-se a