Click or drag to resize

IPublishingManagerAddRedirect Method


Adds a new Redirect entry

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.5.94
Syntax
IRedirect AddRedirect(
	string from,
	string target,
	string Notes,
	IEnumerable<string> pubTgtIds
)

Parameters

from
Type: SystemString
From address. Can be absolute or relative.
target
Type: SystemString
Target relative address. Can also be absolute or relative.
Notes
Type: SystemString
Notes string. Arbitrary description of redirect.
pubTgtIds
Type: System.Collections.GenericIEnumerableString
Specifies which Publishing Targets the redirect entry is for.

Return Value

Type: IRedirect
Newly created redirect entry
Exceptions
ExceptionCondition
ArgumentExceptionWhen either the from or target parameters are null or empty, or when another redirect entry with the same from address (case-insensitive) already exists.
See Also