Adds a new AppSetting to Web.Config. If the key already exists, it will be updated with the new value
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static XmlDocument AddAppSetting( XmlDocument xmlDoc, string key, string value ) |
Visual Basic |
---|
Public Shared Function AddAppSetting ( xmlDoc As XmlDocument, key As String, value As String ) As XmlDocument |
Parameters
- xmlDoc
- Type: System.Xml..::..XmlDocument
xml representation of the web.config file
- key
- Type: System..::..String
key to be created
- value
- Type: System..::..String
value to be created