Class HostController
Inheritance
HostController
Assembly: DotNetNuke.dll
Syntax
public class HostController : ComponentBase<IHostController, HostController>, IHostController, IHostSettingsService
Constructors
HostController()
Declaration
Properties
Instance
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. Use DotNetNuke.Abstractions.IHostSettingsService instead. Scheduled removal in v11.0.0.")]
public static IHostController Instance { get; }
Property Value
Methods
GetBoolean(string)
Declaration
public bool GetBoolean(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
GetBoolean(string, bool)
Declaration
public bool GetBoolean(string key, bool defaultValue)
Parameters
Type |
Name |
Description |
string |
key |
|
bool |
defaultValue |
|
Returns
GetDouble(string)
Declaration
public double GetDouble(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
GetDouble(string, double)
Declaration
public double GetDouble(string key, double defaultValue)
Parameters
Returns
GetEncryptedString(string, string)
Declaration
public string GetEncryptedString(string key, string passPhrase)
Parameters
Returns
GetInteger(string)
Declaration
public int GetInteger(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
GetInteger(string, int)
Declaration
public int GetInteger(string key, int defaultValue)
Parameters
Type |
Name |
Description |
string |
key |
|
int |
defaultValue |
|
Returns
GetSettings()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. use DotNetNuke.Abstractions.IHostSettingsService instead. Scheduled for removal in v11.0.0.")]
public Dictionary<string, ConfigurationSetting> GetSettings()
Returns
GetSettingsDictionary()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. use DotNetNuke.Abstractions.IHostSettingsService instead. Scheduled for removal in v11.0.0.")]
public Dictionary<string, string> GetSettingsDictionary()
Returns
GetString(string)
Declaration
public string GetString(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
GetString(string, string)
Declaration
public string GetString(string key, string defaultValue)
Parameters
Returns
IncrementCrmVersion(bool)
Declaration
public void IncrementCrmVersion(bool includeOverridingPortals)
Parameters
Type |
Name |
Description |
bool |
includeOverridingPortals |
|
Update(IConfigurationSetting)
Declaration
public void Update(IConfigurationSetting config)
Parameters
Update(IConfigurationSetting, bool)
Declaration
public void Update(IConfigurationSetting config, bool clearCache)
Parameters
Update(ConfigurationSetting)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. use DotNetNuke.Abstractions.IHostSettingsService instead. Scheduled for removal in v11.0.0.")]
public void Update(ConfigurationSetting config)
Parameters
Update(ConfigurationSetting, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. use DotNetNuke.Abstractions.IHostSettingsService instead. Scheduled for removal in v11.0.0.")]
public void Update(ConfigurationSetting config, bool clearCache)
Parameters
Update(Dictionary<string, string>)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. use DotNetNuke.Abstractions.IHostSettingsService instead. Scheduled for removal in v11.0.0.")]
public void Update(Dictionary<string, string> settings)
Parameters
Update(string, string)
Declaration
public void Update(string key, string value)
Parameters
Update(string, string, bool)
Declaration
public void Update(string key, string value, bool clearCache)
Parameters
UpdateEncryptedString(string, string, string)
Declaration
public void UpdateEncryptedString(string key, string value, string passPhrase)
Parameters
Implements
Extension Methods