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.6.492
Syntax
IRedirect AddRedirect(
	string from,
	string target,
	string Notes,
	IEnumerable<string> pubTgtIds
)

Parameters

from  String
From address. Can be absolute or relative.
target  String
Target relative address. Can also be absolute or relative.
Notes  String
Notes string. Arbitrary description of redirect.
pubTgtIds  IEnumerableString
Specifies which Publishing Targets the redirect entry is for.

Return Value

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