ArgumentValidation.AcceptLegalFilePathsOnly<T> Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Konfiguruje argument tak, aby akceptował tylko wartości reprezentujące ścieżki plików prawnych.
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)
Parametry typu
- T
Parametry
- argument
- Argument<T>