共用方式為


RequestLocalizationOptions.AddSupportedCultures(String[]) 方法

定義

新增應用程式所支援文化特性的集合。

public:
 Microsoft::AspNetCore::Builder::RequestLocalizationOptions ^ AddSupportedCultures(... cli::array <System::String ^> ^ cultures);
public Microsoft.AspNetCore.Builder.RequestLocalizationOptions AddSupportedCultures (params string[] cultures);
member this.AddSupportedCultures : string[] -> Microsoft.AspNetCore.Builder.RequestLocalizationOptions
Public Function AddSupportedCultures (ParamArray cultures As String()) As RequestLocalizationOptions

參數

cultures
String[]

要加入的文化特性。

傳回

RequestLocalizationOptions

適用於