IPublishingManagerAddRedirect Method
|
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax IRedirect AddRedirect(
string from,
string target,
string Notes,
IEnumerable<string> pubTgtIds
)
Function AddRedirect (
from As String,
target As String,
Notes As String,
pubTgtIds As IEnumerable(Of String)
) As IRedirect
IRedirect^ AddRedirect(
String^ from,
String^ target,
String^ Notes,
IEnumerable<String^>^ pubTgtIds
)
abstract AddRedirect :
from : string *
target : string *
Notes : string *
pubTgtIds : IEnumerable<string> -> IRedirect
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:
IRedirectNewly created redirect entry
Exceptions Exception | Condition |
---|
ArgumentException | When 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