Search Results for

    Show / Hide Table of Contents
    View Source

    Class UmbracoPublishedContentCultureProvider

    Sets the request culture to the culture of the , if one is found in the request.

    Inheritance
    System.Object
    Microsoft.AspNetCore.Localization.RequestCultureProvider
    DynamicRequestCultureProviderBase
    Namespace: Umbraco.Cms.Web.Common.Localization
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class UmbracoPublishedContentCultureProvider : DynamicRequestCultureProviderBase, IRequestCultureProvider

    Constructors

    View Source

    UmbracoPublishedContentCultureProvider(RequestLocalizationOptions)

    Initializes a new instance of the UmbracoPublishedContentCultureProvider class.

    Declaration
    public UmbracoPublishedContentCultureProvider(RequestLocalizationOptions localizationOptions)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Builder.RequestLocalizationOptions localizationOptions

    The localization options.

    Methods

    View Source

    GetProviderCultureResult(HttpContext)

    Gets the provider culture result.

    Declaration
    protected sealed override ProviderCultureResult GetProviderCultureResult(HttpContext httpContext)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.HttpContext httpContext

    The HTTP context.

    Returns
    Type Description
    Microsoft.AspNetCore.Localization.ProviderCultureResult

    The provider culture result.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UmbracoPublishedContentCultureProvider(RequestLocalizationOptions)
    • Methods
      • GetProviderCultureResult(HttpContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX