Table of Contents

Constructor MongoServerAddress

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

MongoServerAddress(string)

Initializes a new instance of MongoServerAddress.

public MongoServerAddress(string host)

Parameters

host string

The server's host name.

MongoServerAddress(string, int)

Initializes a new instance of MongoServerAddress.

public MongoServerAddress(string host, int port)

Parameters

host string

The server's host name.

port int

The server's port number.