ProviderCultureResult Class¶
Details about the cultures obtained from Microsoft.AspNetCore.Localization.IRequestCultureProvider.
- Namespace
Microsoft.AspNetCore.Localization- Assemblies
- Microsoft.AspNetCore.Localization
Syntax¶
public class ProviderCultureResult
-
class
Microsoft.AspNetCore.Localization.ProviderCultureResult
Constructors¶
-
ProviderCultureResult(System.Collections.Generic.IList<System.String>)¶ Creates a new
Microsoft.AspNetCore.Localization.ProviderCultureResultobject that has itsMicrosoft.AspNetCore.Localization.ProviderCultureResult.CulturesandMicrosoft.AspNetCore.Localization.ProviderCultureResult.UICulturesproperties set to the same culture value.Arguments: cultures (System.Collections.Generic.IList<System.String>) – The list of cultures to be used for formatting, text, i.e. language. public ProviderCultureResult(IList<string> cultures)
-
ProviderCultureResult(System.Collections.Generic.IList<System.String>, System.Collections.Generic.IList<System.String>) Creates a new
Microsoft.AspNetCore.Localization.ProviderCultureResultobject has itsMicrosoft.AspNetCore.Localization.ProviderCultureResult.CulturesandMicrosoft.AspNetCore.Localization.ProviderCultureResult.UICulturesproperties set to the respective culture values provided.Arguments: - cultures (System.Collections.Generic.IList<System.String>) – The list of cultures to be used for formatting.
- uiCultures (System.Collections.Generic.IList<System.String>) – The list of ui cultures to be used for text, i.e. language.
public ProviderCultureResult(IList<string> cultures, IList<string> uiCultures)
-
ProviderCultureResult(System.String) Creates a new
Microsoft.AspNetCore.Localization.ProviderCultureResultobject that has itsMicrosoft.AspNetCore.Localization.ProviderCultureResult.CulturesandMicrosoft.AspNetCore.Localization.ProviderCultureResult.UICulturesproperties set to the same culture value.Arguments: culture (System.String) – The name of the culture to be used for formatting, text, i.e. language. public ProviderCultureResult(string culture)
-
ProviderCultureResult(System.String, System.String) Creates a new
Microsoft.AspNetCore.Localization.ProviderCultureResultobject has itsMicrosoft.AspNetCore.Localization.ProviderCultureResult.CulturesandMicrosoft.AspNetCore.Localization.ProviderCultureResult.UICulturesproperties set to the respective culture values provided.Arguments: - culture (System.String) – The name of the culture to be used for formatting.
- uiCulture (System.String) – The name of the ui culture to be used for text, i.e. language.
public ProviderCultureResult(string culture, string uiCulture)
-
Properties¶
-
Microsoft.AspNetCore.Localization.ProviderCultureResult.Cultures¶ Gets the list of cultures to be used for formatting.
Return type: System.Collections.Generic.IList<System.String> public IList<string> Cultures { get; }
-
Microsoft.AspNetCore.Localization.ProviderCultureResult.UICultures¶ Gets the list of ui cultures to be used for text, i.e. language;
Return type: System.Collections.Generic.IList<System.String> public IList<string> UICultures { get; }
-