• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class FolderMappingSettingsControlBase

Inheritance
System.Object
UserControlBase
PortalModuleBase
FolderMappingSettingsControlBase
Settings
Implements
IModuleControl
Inherited Members
PortalModuleBase.FileInfoRegex
PortalModuleBase.ContainerControl
PortalModuleBase.EditMode
PortalModuleBase.IsEditable
PortalModuleBase.PortalId
PortalModuleBase.TabId
PortalModuleBase.UserInfo
PortalModuleBase.UserId
PortalModuleBase.PortalAlias
PortalModuleBase.Settings
PortalModuleBase.Control
PortalModuleBase.ControlPath
PortalModuleBase.ControlName
PortalModuleBase.ModuleContext
PortalModuleBase.CacheDirectory
PortalModuleBase.CacheFileName
PortalModuleBase.CacheKey
PortalModuleBase.Actions
PortalModuleBase.HelpURL
PortalModuleBase.ModuleConfiguration
PortalModuleBase.TabModuleId
PortalModuleBase.ModuleId
PortalModuleBase.LocalResourceFile
PortalModuleBase.DependencyProvider
PortalModuleBase.EditUrl()
PortalModuleBase.EditUrl(String)
PortalModuleBase.EditUrl(String, String)
PortalModuleBase.EditUrl(String, String, String)
PortalModuleBase.EditUrl(String, String, String, String[])
PortalModuleBase.EditUrl(Int32, String, Boolean, String[])
PortalModuleBase.GetNextActionID()
PortalModuleBase.Dispose()
PortalModuleBase.GetCacheFileName(Int32)
PortalModuleBase.GetCacheKey(Int32)
PortalModuleBase.SynchronizeModule()
PortalModuleBase.OnInit(EventArgs)
PortalModuleBase.OnLoad(EventArgs)
PortalModuleBase.AddActionHandler(ActionEventHandler)
PortalModuleBase.LocalizeString(String)
PortalModuleBase.LocalizeSafeJsString(String)
UserControlBase.IsHostMenu
UserControlBase.PortalSettings
Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke.dll
Syntax
public abstract class FolderMappingSettingsControlBase : PortalModuleBase, IModuleControl

Methods

| Improve this Doc View Source

LoadSettings(Hashtable)

Use this method to load the provider's concrete settings.

Declaration
public abstract void LoadSettings(Hashtable folderMappingSettings)
Parameters
Type Name Description
Hashtable folderMappingSettings

The Hashtable containing the folder mapping settings.

Examples

public override void LoadSettings(Hashtable folderMappingSettings) { if (folderMappingSettings.ContainsKey("AccessKeyId")) { tbSettingValue.Text = folderMappingSettings["SettingName"].ToString(); } }.

| Improve this Doc View Source

UpdateSettings(Int32)

Use this method to update the provider's concrete settings for the specified folder mapping.

Declaration
public abstract void UpdateSettings(int folderMappingID)
Parameters
Type Name Description
System.Int32 folderMappingID

The folder mapping identifier.

Remarks

Because this method is executed after adding / updating the folder mapping, if there are validation errors, please throw an exception, as can be seen in the provided example.

Examples

public override void UpdateSettings(int folderMappingID) { Page.Validate();

if (Page.IsValid) { var folderMappingController = FolderMappingController.Instance; var folderMapping = folderMappingController.GetFolderMapping(folderMappingID);

folderMapping.FolderMappingSettings["SettingName"] = tbSettingValue.Text;

folderMappingController.UpdateFolderMapping(folderMapping); } else { throw new Exception(); } }.

Implements

IModuleControl

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS