Interface ILanguageSegmentMatcher
This interface supports the EPiServer infrastructure and is not intended to be used directly from your code.
Namespace: EPiServer.Web.Routing.Segments
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public interface ILanguageSegmentMatcher
Methods
TryGetLanguageId(String, out String)
This class supports the EPiServer infrastructure and is not intended to be used directly from your code. Tries to get a language id from an url segment.
Declaration
bool TryGetLanguageId(string urlSegment, out string languageId)
Parameters
Type | Name | Description |
---|---|---|
System.String | urlSegment | The url segment to check |
System.String | languageId | The id of the langauge branch if it exists, otherwise |
Returns
Type | Description |
---|---|
System.Boolean | True if the language is enabled |
TryGetLanguageUrlSegment(String, out String)
This class supports the EPiServer infrastructure and is not intended to be used directly from your code. Tries to get an url segment from a language id.
Declaration
bool TryGetLanguageUrlSegment(string languageId, out string urlSegment)
Parameters
Type | Name | Description |
---|---|---|
System.String | languageId | The language id to check |
System.String | urlSegment | The url segment (with fallback to language ID) of the langauge branch if it exists, otherwise |
Returns
Type | Description |
---|---|
System.Boolean | True if the language is enabled |