Class PreviewProfileController
The business of mobile preview profiles.
Inheritance
System.Object
PreviewProfileController
Implements
Namespace: DotNetNuke.Services.Mobile
Assembly: DotNetNuke.dll
Syntax
public class PreviewProfileController : object, IPreviewProfileController
Methods
| Improve this Doc View SourceDelete(Int32, Int32)
delete a preview profile.
Declaration
public void Delete(int portalId, int id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | Portal's id. |
| System.Int32 | id | the profile's id. |
GetProfileById(Int32, Int32)
get a specific preview profile by id.
Declaration
public IPreviewProfile GetProfileById(int portalId, int id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | the profile belong's portal. |
| System.Int32 | id | profile's id. |
Returns
| Type | Description |
|---|---|
| IPreviewProfile | profile object. |
GetProfilesByPortal(Int32)
get a preview profiles list for portal.
Declaration
public IList<IPreviewProfile> GetProfilesByPortal(int portalId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | portal id. |
Returns
| Type | Description |
|---|---|
| IList<IPreviewProfile> | List of preview profile. |
Save(IPreviewProfile)
save a preview profile. If profile.Id equals Null.NullInteger(-1), that means need to add a new profile; otherwise will update the profile by profile.Id.
Declaration
public void Save(IPreviewProfile profile)
Parameters
| Type | Name | Description |
|---|---|---|
| IPreviewProfile | profile | profile object. |