Table of Contents

Method Reconnect

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Reconnect()

Reconnects to the server. Normally there is no need to call this method. All connections are closed and new connections will be opened as needed. Calling this method frequently will result in connection thrashing.

public virtual void Reconnect()