共用方式為


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

適用於