Class LanguageSegment
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Implements
Inherited Members
Namespace: EPiServer.Web.Routing.Segments.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public class LanguageSegment : SegmentBase, ISegment
Constructors
LanguageSegment(String, ILanguageSegmentMatcher, HostLanguageResolver, VirtualPathHostResolver, HostNameResolver)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the LanguageSegment class.
Declaration
public LanguageSegment(string name, ILanguageSegmentMatcher languageSegmentMatcher, HostLanguageResolver hostLanguageResolver, VirtualPathHostResolver virtualPathHostResolver, HostNameResolver hostNameResolver)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
ILanguageSegmentMatcher | languageSegmentMatcher | |
HostLanguageResolver | hostLanguageResolver | |
VirtualPathHostResolver | virtualPathHostResolver | |
HostNameResolver | hostNameResolver |
Properties
EnabledLanguages
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets or sets the enabled languages.
Declaration
public IDictionary<string, CultureInfo> EnabledLanguages { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Globalization.CultureInfo> | The enabled languages. |
Remarks
If not explicitly set is Languages used.
Methods
CurrentlyRequestedHostMatchesLanguage(RequestContext, CultureInfo)
Declaration
public bool CurrentlyRequestedHostMatchesLanguage(RequestContext requestContext, CultureInfo language)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | requestContext | |
System.Globalization.CultureInfo | language |
Returns
Type | Description |
---|---|
System.Boolean |
GetVirtualPathSegment(RequestContext, RouteValueDictionary)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the string representation of this segments virtual path.
Declaration
public override string GetVirtualPathSegment(RequestContext requestContext, RouteValueDictionary values)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | requestContext | The request |
System.Web.Routing.RouteValueDictionary | values | Custom values |
Returns
Type | Description |
---|---|
System.String | Virtual path from this segment. |
Overrides
HandleNoLanguageFoundStrict(SegmentContext)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines how the case when no language is found and running with strict language routing.
Declaration
protected virtual bool HandleNoLanguageFoundStrict(SegmentContext context)
Parameters
Type | Name | Description |
---|---|---|
SegmentContext | context | The context. |
Returns
Type | Description |
---|---|
System.Boolean | false |
RouteDataMatch(SegmentContext)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Get the language segment from the url, if there is any and puts it in the RouteData collection.
Declaration
public override bool RouteDataMatch(SegmentContext context)
Parameters
Type | Name | Description |
---|---|---|
SegmentContext | context | The routing context |
Returns
Type | Description |
---|---|
System.Boolean | True |