Click or drag to resize

ServerApi Constructor

Initializes a new instance of the ServerApi class.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax
public ServerApi(
	ServerApiVersion version,
	Optional<bool?> strict = default,
	Optional<bool?> deprecationErrors = default
)

Parameters

version
Type: MongoDB.DriverServerApiVersion
The server API version.
strict (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The flag for strict server API version enforcement.
deprecationErrors (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The flag for treating deprecated server APIs as errors.
See Also