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.164 -- Release Build+a72e9d3f8c8e7d23f20eb07608da028b64d06aa9
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