Table of Contents

Method Connect

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

Connect()

Connects to the server. Normally there is no need to call this method as the driver will connect to the server automatically when needed.

public virtual void Connect()

Connect(TimeSpan)

Connects to the server. Normally there is no need to call this method as the driver will connect to the server automatically when needed.

public virtual void Connect(TimeSpan timeout)

Parameters

timeout TimeSpan

How long to wait before timing out.