MarkLogic XCC/.Net Library |

# ConnectionProvider.obtainConnection Method

Provide a ServerConnection that is open and ready to communicate with the server.

[Visual Basic]
Function obtainConnection( _
ByVal session As Session _
) As ServerConnection
[C#]
ServerConnection obtainConnection(
Session session
);

#### Parameters

session
  The Session requesting a connection.

#### Return Value

An open, ready to use ServerConnection object.

#### See Also

ConnectionProvider Interface | Marklogic.Xcc.Spi Namespace