Class FolderMappingSettingsControlBase
Inheritance
Implements
Inherited Members
Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke.dll
Syntax
public abstract class FolderMappingSettingsControlBase : PortalModuleBase, IModuleControl
Methods
| Improve this Doc View SourceLoadSettings(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 SourceUpdateSettings(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(); } }.