Saves a config setting without relying on WebCOnfigurationManager, so it can be used from medium trust.

Namespace: MonoSoftware.MonoX.Utilities
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public static bool SaveConfigSetting(
	string key,
	string value,
	XDocument xmlFile
)
Visual Basic
Public Shared Function SaveConfigSetting ( 
	key As String,
	value As String,
	xmlFile As XDocument
) As Boolean
Visual C++
public:
static bool SaveConfigSetting(
	String^ key, 
	String^ value, 
	XDocument^ xmlFile
)
F#
static member SaveConfigSetting : 
        key : string * 
        value : string * 
        xmlFile : XDocument -> bool 

Parameters

key
Type: System..::..String
Config key.
value
Type: System..::..String
Config value.
xmlFile
Type: System.Xml.Linq..::..XDocument
Config file.

Return Value

Type: Boolean
True if save was successful, false otherwise.

See Also