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.143 -- Release Build+3fe41d9802ea3306ea635eff093317cf9da2ea5c
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