Click or drag to resize
CMSMvcDocumentConstraint Class
Constraint to check the context of a document in the web site.
Inheritance Hierarchy

Namespace: CMS.URLRewritingEngine
Assembly: CMS.URLRewritingEngine (in CMS.URLRewritingEngine.dll) Version: 11.0.0
Syntax
C#
public class CMSMvcDocumentConstraint : BaseDocumentConstraint, 
	IRouteConstraint

The CMSMvcDocumentConstraint type exposes the following members.

Constructors
  NameDescription
Public methodCMSMvcDocumentConstraint
Constructor.
Top
Fields
  NameDescription
Protected fieldmAliasPath
Alias path for the current handler
(Inherited from BaseDocumentConstraint.)
Protected fieldmCulture
Culture for the current handler
(Inherited from BaseDocumentConstraint.)
Protected fieldmNodeId
Node ID for the current handler
(Inherited from BaseDocumentConstraint.)
Protected fieldmPageInfoSource
Page info source
(Inherited from BaseDocumentConstraint.)
Protected fieldmSiteName
Site name for the current handler.
(Inherited from BaseDocumentConstraint.)
Protected fieldmUrlPath
Url path
(Inherited from BaseDocumentConstraint.)
Top
Properties
  NameDescription
Public propertySwitchToRouteCulture
If true (default), the routing behaves the same way as URL path = switches the current culture to the route culture
(Inherited from BaseDocumentConstraint.)
Top
Methods
  NameDescription
Protected methodCheckCulture
Validates the culture of the request against the constraint
(Inherited from BaseDocumentConstraint.)
Protected methodCheckSite
Validates current site against the constraint
(Inherited from BaseDocumentConstraint.)
Protected methodGetPageInfo
Gets the page info with the correct PageResult object for the given url.
(Inherited from BaseDocumentConstraint.)
Public methodMatch
Returns true if the route matches the context.
Protected methodPreProcess
Preprocesses the constraint, matches the site name and culture, and attempts to send output from cache
(Inherited from BaseDocumentConstraint.)
Top
See Also