Table of Contents

Method ConfigureWithConnectionString

Namespace
MongoDB.Driver.Core.Configuration
Assembly
MongoDB.Driver.dll

ConfigureWithConnectionString(ClusterBuilder, string)

Configures a cluster builder from a connection string.

public static ClusterBuilder ConfigureWithConnectionString(this ClusterBuilder builder, string connectionString)

Parameters

builder ClusterBuilder

The cluster builder.

connectionString string

The connection string.

Returns

ClusterBuilder

A reconfigured cluster builder.

ConfigureWithConnectionString(ClusterBuilder, string, ServerApi)

Configures a cluster builder from a connection string.

public static ClusterBuilder ConfigureWithConnectionString(this ClusterBuilder builder, string connectionString, ServerApi serverApi)

Parameters

builder ClusterBuilder

The cluster builder.

connectionString string

The connection string.

serverApi ServerApi

The server API.

Returns

ClusterBuilder

A reconfigured cluster builder.

ConfigureWithConnectionString(ClusterBuilder, ConnectionString)

Configures a cluster builder from a connection string.

public static ClusterBuilder ConfigureWithConnectionString(this ClusterBuilder builder, ConnectionString connectionString)

Parameters

builder ClusterBuilder

The cluster builder.

connectionString ConnectionString

The connection string.

Returns

ClusterBuilder

A reconfigured cluster builder.

ConfigureWithConnectionString(ClusterBuilder, ConnectionString, ServerApi)

Configures a cluster builder from a connection string.

public static ClusterBuilder ConfigureWithConnectionString(this ClusterBuilder builder, ConnectionString connectionString, ServerApi serverApi)

Parameters

builder ClusterBuilder

The cluster builder.

connectionString ConnectionString

The connection string.

serverApi ServerApi

The server API.

Returns

ClusterBuilder

A reconfigured cluster builder.