Gemstone Configuration Library
Show/Hide TOC

# ConnectionStringParserToXML Method

Converts a connection string to XML.

## Definition

Namespace: Gemstone.Configuration
Assembly: Gemstone.Configuration (in Gemstone.Configuration.dll) Version: 1.0.163 -- Release Build+3387598c915385b78f9596f81860cb6a9b549b88
C#
View Source Request Example

    public static XElement ToXML(
    	string connectionString
    )

VB
View Source Request Example

    Public Shared Function ToXML (
    	connectionString As String
    ) As XElement

C++
View Source Request Example

    public:
    static XElement^ ToXML(
    	String^ connectionString
    )

JavaScript
View Source Request Example

    Gemstone.Configuration.ConnectionStringParser.ToXML = function(connectionString);

#### Parameters

connectionString String
  The connection string to be converted to XML.

#### Return Value

XElement
The XML root element converted from the connection string.

## Exceptions

InvalidOperationException | The connection string does not define exactly one root element.

## See Also

#### Reference

ConnectionStringParser Class
Gemstone.Configuration Namespace