Поделиться через


CommandLineBuilderExtensions.UseLocalizationResources Метод

Определение

Указывает ресурсы локализации, которые будут использоваться при отображении справки, сообщений об ошибках и других пользовательских строк.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Builder::CommandLineBuilder ^ UseLocalizationResources(System::CommandLine::Builder::CommandLineBuilder ^ builder, System::CommandLine::LocalizationResources ^ validationMessages);
public static System.CommandLine.Builder.CommandLineBuilder UseLocalizationResources (this System.CommandLine.Builder.CommandLineBuilder builder, System.CommandLine.LocalizationResources validationMessages);
static member UseLocalizationResources : System.CommandLine.Builder.CommandLineBuilder * System.CommandLine.LocalizationResources -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseLocalizationResources (builder As CommandLineBuilder, validationMessages As LocalizationResources) As CommandLineBuilder

Параметры

builder
CommandLineBuilder

Построитель командной строки.

validationMessages
LocalizationResources

Используемые ресурсы локализации.

Возвращаемое значение

Тот же экземпляр CommandLineBuilder.

Применяется к