Class Redirection
Inheritance
Namespace: DotNetNuke.Services.Mobile
Assembly: DotNetNuke.dll
Syntax
public class Redirection : object, IRedirection, IHydratable
Properties
| Improve this Doc View SourceEnabled
Gets or sets a value indicating whether whether this redirection is available.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Id
Gets or sets redirection's primary key.
Declaration
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
IncludeChildTabs
Gets or sets a value indicating whether this value will be available when SourceTabId have a specific value, in that way when this value is true, page will rediect to target when request source tab and all child tabs under source tab.
Declaration
public bool IncludeChildTabs { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
KeyID
Gets or sets iHydratable.KeyID.
Declaration
public int KeyID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
MatchRules
Gets or sets when redirection type is RedirectionType.Other, should use this collection to match the request by capability info.
Declaration
public IList<IMatchRule> MatchRules { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<IMatchRule> |
Name
Gets or sets redirection name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PortalId
Gets or sets the portal Redirection is belong to.
Declaration
public int PortalId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
SortOrder
Gets or sets redirection's piority.
Declaration
public int SortOrder { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
SourceTabId
Gets or sets the redirection's match source tab. if this value is Null.NullInteger(-1) means should redirect when request the whole current portal; otherwise means this redirection will be available for the specific tab.
Declaration
public int SourceTabId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
TargetType
Gets or sets redirection's target type, should be: Portal, Tab, Url.
Declaration
public TargetType TargetType { get; set; }
Property Value
| Type | Description |
|---|---|
| TargetType |
TargetValue
Gets or sets the redirection's target value, this value will determine by TargetType as:
- TargetType.Portal: this value should be a portal id.
- TargetType.Tab: this value should be a tab id.
- TargetType.Url: this value should be a valid url.
Declaration
public object TargetValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object |
Type
Gets or sets redirection Type: Mobile, Tablet, Both or Other.
Declaration
public RedirectionType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| RedirectionType |
Methods
| Improve this Doc View SourceFill(System.Data.IDataReader)
Fill the object with data from database.
Declaration
public void Fill(System.Data.IDataReader dr)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Data.IDataReader | dr | the data reader. |