Class Config
Assembly: DotNetNuke.dll
Syntax
Constructors
Config()
Declaration
Methods
AddAppSetting(XmlDocument, string, string)
Declaration
public static XmlDocument AddAppSetting(XmlDocument xmlDoc, string key, string value)
Parameters
Returns
AddAppSetting(XmlDocument, string, string, bool)
Declaration
public static XmlDocument AddAppSetting(XmlDocument xmlDoc, string key, string value, bool update)
Parameters
Returns
AddCodeSubDirectory(IApplicationStatusInfo, string)
Declaration
public static void AddCodeSubDirectory(IApplicationStatusInfo appStatus, string name)
Parameters
AddCodeSubDirectory(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static void AddCodeSubDirectory(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
AddFCNMode(IApplicationStatusInfo, FcnMode)
Declaration
public static string AddFCNMode(IApplicationStatusInfo appStatus, Config.FcnMode fcnMode)
Parameters
Returns
AddFCNMode(FcnMode)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static string AddFCNMode(Config.FcnMode fcnMode)
Parameters
Returns
BackupConfig()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static void BackupConfig()
BackupConfig(IApplicationStatusInfo)
Declaration
public static void BackupConfig(IApplicationStatusInfo statusInfo)
Parameters
GetAuthCookieTimeout()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static int GetAuthCookieTimeout()
Returns
GetAuthCookieTimeout(IApplicationStatusInfo)
Declaration
public static int GetAuthCookieTimeout(IApplicationStatusInfo appStatus)
Parameters
Returns
GetConnectionString()
Declaration
public static string GetConnectionString()
Returns
GetConnectionString(string)
Declaration
public static string GetConnectionString(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetCustomErrorMode()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static string GetCustomErrorMode()
Returns
GetCustomErrorMode(IApplicationStatusInfo)
Declaration
public static string GetCustomErrorMode(IApplicationStatusInfo appStatus)
Parameters
Returns
GetDataBaseOwner()
Declaration
public static string GetDataBaseOwner()
Returns
GetDecryptionkey()
Declaration
public static string GetDecryptionkey()
Returns
GetDefaultProvider(string)
Declaration
public static Provider GetDefaultProvider(string type)
Parameters
Type |
Name |
Description |
string |
type |
|
Returns
GetFcnMode()
Declaration
public static string GetFcnMode()
Returns
GetFriendlyUrlProvider()
Declaration
public static string GetFriendlyUrlProvider()
Returns
GetMaxUploadSize()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static long GetMaxUploadSize()
Returns
GetMaxUploadSize(IApplicationStatusInfo)
Declaration
public static long GetMaxUploadSize(IApplicationStatusInfo appStatus)
Parameters
Returns
GetObjectQualifer()
Declaration
public static string GetObjectQualifer()
Returns
GetPathToFile(IApplicationStatusInfo, ConfigFileType)
Declaration
public static string GetPathToFile(IApplicationStatusInfo appStatus, Config.ConfigFileType file)
Parameters
Returns
GetPathToFile(IApplicationStatusInfo, ConfigFileType, bool)
Declaration
public static string GetPathToFile(IApplicationStatusInfo appStatus, Config.ConfigFileType file, bool overwrite)
Parameters
Returns
GetPathToFile(ConfigFileType)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static string GetPathToFile(Config.ConfigFileType file)
Parameters
Returns
GetPathToFile(ConfigFileType, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static string GetPathToFile(Config.ConfigFileType file, bool overwrite)
Parameters
Returns
GetPersistentCookieTimeout()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static int GetPersistentCookieTimeout()
Returns
GetPersistentCookieTimeout(IApplicationStatusInfo)
Declaration
public static int GetPersistentCookieTimeout(IApplicationStatusInfo appStatus)
Parameters
Returns
GetProvider(string, string)
Declaration
public static Provider GetProvider(string type, string name)
Parameters
Returns
GetProviderPath(string)
Declaration
public static string GetProviderPath(string type)
Parameters
Type |
Name |
Description |
string |
type |
|
Returns
GetRequestFilterSize()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static long GetRequestFilterSize()
Returns
GetRequestFilterSize(IApplicationStatusInfo)
Declaration
public static long GetRequestFilterSize(IApplicationStatusInfo appStatus)
Parameters
Returns
GetSection(string)
Declaration
public static object GetSection(string section)
Parameters
Type |
Name |
Description |
string |
section |
|
Returns
GetSetting(string)
Declaration
public static string GetSetting(string setting)
Parameters
Type |
Name |
Description |
string |
setting |
|
Returns
GetUpgradeConnectionString()
Declaration
public static string GetUpgradeConnectionString()
Returns
IsNet45OrNewer()
Declaration
public static bool IsNet45OrNewer()
Returns
Load()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static XmlDocument Load()
Returns
Load(IApplicationStatusInfo)
Declaration
public static XmlDocument Load(IApplicationStatusInfo appStatus)
Parameters
Returns
Load(IApplicationStatusInfo, string)
Declaration
public static XmlDocument Load(IApplicationStatusInfo appStatus, string filename)
Parameters
Returns
Load(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static XmlDocument Load(string filename)
Parameters
Type |
Name |
Description |
string |
filename |
|
Returns
RemoveCodeSubDirectory(IApplicationStatusInfo, string)
Declaration
public static void RemoveCodeSubDirectory(IApplicationStatusInfo appStatus, string name)
Parameters
RemoveCodeSubDirectory(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static void RemoveCodeSubDirectory(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Save(IApplicationStatusInfo, XmlDocument)
Declaration
public static string Save(IApplicationStatusInfo appStatus, XmlDocument xmlDoc)
Parameters
Returns
Save(IApplicationStatusInfo, XmlDocument, string)
Declaration
public static string Save(IApplicationStatusInfo appStatus, XmlDocument xmlDoc, string filename)
Parameters
Returns
Save(XmlDocument)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static string Save(XmlDocument xmlDoc)
Parameters
Returns
Save(XmlDocument, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static string Save(XmlDocument xmlDoc, string filename)
Parameters
Returns
SetMaxUploadSize(IApplicationStatusInfo, long)
Declaration
public static void SetMaxUploadSize(IApplicationStatusInfo appStatus, long newSize)
Parameters
SetMaxUploadSize(long)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static void SetMaxUploadSize(long newSize)
Parameters
Type |
Name |
Description |
long |
newSize |
|
Touch()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static bool Touch()
Returns
Touch(IApplicationStatusInfo)
Declaration
public static bool Touch(IApplicationStatusInfo appStatus)
Parameters
Returns
UpdateConnectionString(IApplicationStatusInfo, string)
Declaration
public static void UpdateConnectionString(IApplicationStatusInfo appStatus, string conn)
Parameters
UpdateConnectionString(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static void UpdateConnectionString(string conn)
Parameters
Type |
Name |
Description |
string |
conn |
|
UpdateDataProvider(IApplicationStatusInfo, string, string, string)
Declaration
public static void UpdateDataProvider(IApplicationStatusInfo appStatus, string name, string databaseOwner, string objectQualifier)
Parameters
UpdateDataProvider(string, string, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static void UpdateDataProvider(string name, string databaseOwner, string objectQualifier)
Parameters
UpdateInstallVersion(IApplicationStatusInfo, Version)
Declaration
public static string UpdateInstallVersion(IApplicationStatusInfo appStatus, Version version)
Parameters
Returns
UpdateInstallVersion(Version)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static string UpdateInstallVersion(Version version)
Parameters
Type |
Name |
Description |
Version |
version |
|
Returns
UpdateMachineKey()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static string UpdateMachineKey()
Returns
UpdateMachineKey(IApplicationStatusInfo)
Declaration
public static string UpdateMachineKey(IApplicationStatusInfo appStatus)
Parameters
Returns
UpdateMachineKey(XmlDocument)
Declaration
public static XmlDocument UpdateMachineKey(XmlDocument xmlConfig)
Parameters
Returns
UpdateUpgradeConnectionString(IApplicationStatusInfo, string, string)
Declaration
public static void UpdateUpgradeConnectionString(IApplicationStatusInfo appStatus, string name, string upgradeConnectionString)
Parameters
UpdateUpgradeConnectionString(string, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static void UpdateUpgradeConnectionString(string name, string upgradeConnectionString)
Parameters
Type |
Name |
Description |
string |
name |
|
string |
upgradeConnectionString |
|
UpdateValidationKey()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use overload taking an IApplicationStatusInfo. Scheduled for removal in v11.0.0.")]
public static string UpdateValidationKey()
Returns
UpdateValidationKey(IApplicationStatusInfo)
Declaration
public static string UpdateValidationKey(IApplicationStatusInfo appStatus)
Parameters
Returns
UpdateValidationKey(XmlDocument)
Declaration
public static XmlDocument UpdateValidationKey(XmlDocument xmlConfig)
Parameters
Returns
Extension Methods