ArgumentValidation.AcceptLegalFileNamesOnly<T> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Configure l’argument pour accepter uniquement les valeurs représentant des noms de fichiers juridiques.
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)
Paramètres de type
- T
Paramètres
- argument
- Argument<T>
Retours
Remarques
Une erreur d’analyse entraîne, par exemple, si des séparateurs de chemins de fichier sont trouvés dans la valeur analysée.