IPublishingManagerAddRedirect Method
|
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
SyntaxIRedirect 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 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
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