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.165 -- Release Build+a76ba3abb0543333e73b931f49342d17ef3048d6
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