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
ClusterBuilderThe cluster builder.
connectionString
stringThe 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
ClusterBuilderThe cluster builder.
connectionString
stringThe connection string.
serverApi
ServerApiThe 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
ClusterBuilderThe cluster builder.
connectionString
ConnectionStringThe 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
ClusterBuilderThe cluster builder.
connectionString
ConnectionStringThe connection string.
serverApi
ServerApiThe server API.
Returns
- ClusterBuilder
A reconfigured cluster builder.