IPublishingManagerAddRedirect Method Ingeniux CMS Content Store API

Adds a new Redirect entry

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

IRedirect AddRedirect(
	string from,
	string target,
	string Notes,
	IEnumerable<string> pubTgtIds,
	bool suppressException = false
)

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.
suppressException (Optional)
Type: SystemBoolean

[Missing <param name="suppressException"/> documentation for "M:Ingeniux.CMS.IPublishingManager.AddRedirect(System.String,System.String,System.String,System.Collections.Generic.IEnumerable{System.String},System.Boolean)"]

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

Reference