Argument<T>.CustomParser Propriété
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.
Obtient ou définit un analyseur d’arguments personnalisé.
public:
property Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ CustomParser { Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ get(); void set(Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ value); };
public Func<System.CommandLine.Parsing.ArgumentResult,T?>? CustomParser { get; set; }
member this.CustomParser : Func<System.CommandLine.Parsing.ArgumentResult, 'T> with get, set
Public Property CustomParser As Func(Of ArgumentResult, T)
Valeur de propriété
Remarques
L’analyseur personnalisé est appelé lorsqu’il y a eu une entrée d’analyse fournie pour un argument donné. La même instance peut être définie comme DefaultValueFactory; dans ce cas, le délégué est également appelé lorsqu’aucune entrée n’a été fournie.