MarkLogic XCC/.Net Library |

# ConnectionProvider.returnConnection Method

Return a ServerConnection object obtained from a previous call to obtainConnection() to the provider, possibly to be pooled and re-used. If the connection has a non-zero timeout value set com.marklogic.xcc.spi.ServerConnectionsetTimeoutMillislong, that value will inform the provider to discard the object after that amount of time has elapsed.

[Visual Basic]
Sub returnConnection( _
ByVal connection As ServerConnection _
)
[C#]
void returnConnection(
ServerConnection connection
);

#### Parameters

connection
  A previously obtained ServerConnection instance.

#### Return Value

ServerConnection

#### See Also

ConnectionProvider Interface | Marklogic.Xcc.Spi Namespace