Share via


RequestLocalizationOptions.SetDefaultCulture(String) Method

Definition

Set the default culture which is used by the application when a supported culture could not be determined by one of the configured IRequestCultureProviders.

public:
 Microsoft::AspNetCore::Builder::RequestLocalizationOptions ^ SetDefaultCulture(System::String ^ defaultCulture);
public Microsoft.AspNetCore.Builder.RequestLocalizationOptions SetDefaultCulture (string defaultCulture);
member this.SetDefaultCulture : string -> Microsoft.AspNetCore.Builder.RequestLocalizationOptions
Public Function SetDefaultCulture (defaultCulture As String) As RequestLocalizationOptions

Parameters

defaultCulture
String

The default culture to be set.

Returns

The RequestLocalizationOptions.

Applies to