C# Class MongoDB.Driver.MongoClient

Represents a client to MongoDB.
Mostra file Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
GetServer ( ) : MongoServer

Gets a MongoServer object using this client's settings.

MongoClient ( )

Initializes a new instance of the MongoClient class.

MongoClient ( MongoClientSettings settings )

Initializes a new instance of the MongoClient class.

MongoClient ( MongoDB.Driver.MongoUrl url )

Initializes a new instance of the MongoClient class.

MongoClient ( string connectionString )

Initializes a new instance of the MongoClient class.

Private Methods

Method Description
ParseConnectionString ( string connectionString ) : MongoClientSettings

Method Details

GetServer() public method

Gets a MongoServer object using this client's settings.
public GetServer ( ) : MongoServer
return MongoServer

MongoClient() public method

Initializes a new instance of the MongoClient class.
public MongoClient ( )

MongoClient() public method

Initializes a new instance of the MongoClient class.
public MongoClient ( MongoClientSettings settings )
settings MongoClientSettings The settings.

MongoClient() public method

Initializes a new instance of the MongoClient class.
public MongoClient ( MongoDB.Driver.MongoUrl url )
url MongoDB.Driver.MongoUrl The URL.

MongoClient() public method

Initializes a new instance of the MongoClient class.
public MongoClient ( string connectionString )
connectionString string The connection string.