Click or drag to resize
AlternativeUrlsServiceGetMainDocumentData Method
Returns data of main document for given alternativeUrl. alternativeUrl is normalized and checked whether matches any excluded URLs and should not be processed.

Namespace: Kentico.Content.Web.Mvc.Routing
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public MainDocumentData GetMainDocumentData(
	string alternativeUrl
)

Parameters

alternativeUrl
Type: SystemString
Alternative URL for which main document data is retrieved.

Return Value

Type: MainDocumentData
Data of main document if such is found, otherwise null.

Implements

IAlternativeUrlsServiceGetMainDocumentData(String)
See Also