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.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public ServerApi(
	ServerApiVersion version,
	Optional<Nullable<bool>> strict = null,
	Optional<Nullable<bool>> deprecationErrors = null
)

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