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.175 -- Release Build+637a0b8afbf23de8576b46535302f40c0687f3e1
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