Saves a connection string without relying on WebCOnfigurationManger, so it can be used in 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 SaveConnectionString(
	string name,
	string value,
	XDocument xmlFile
)
Visual Basic
Public Shared Function SaveConnectionString ( 
	name As String,
	value As String,
	xmlFile As XDocument
) As Boolean
Visual C++
public:
static bool SaveConnectionString(
	String^ name, 
	String^ value, 
	XDocument^ xmlFile
)
F#
static member SaveConnectionString : 
        name : string * 
        value : string * 
        xmlFile : XDocument -> bool 

Parameters

name
Type: System..::..String
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