OptionExtensions.LegalFileNamesOnly<TOption>(TOption) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures an option to accept only values representing legal file names.
public:
generic <typename TOption>
where TOption : System::CommandLine::Option[System::Runtime::CompilerServices::Extension]
static TOption LegalFileNamesOnly(TOption option);
public static TOption LegalFileNamesOnly<TOption>(this TOption option) where TOption : System.CommandLine.Option;
static member LegalFileNamesOnly : 'Option -> 'Option (requires 'Option :> System.CommandLine.Option)
<Extension()>
Public Function LegalFileNamesOnly(Of TOption As Option) (option As TOption) As TOption
Type Parameters
- TOption
Parameters
- option
- TOption
The option to configure.
Returns
TOption
The option being extended.
Remarks
A parse error will result, for example, if file path separators are found in the parsed value.
Applies to
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.