Table of Contents

Constructor ServerApi

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

ServerApi(ServerApiVersion, Optional<bool?>, Optional<bool?>)

Initializes a new instance of the ServerApi class.

public ServerApi(ServerApiVersion version, Optional<bool?> strict = default, Optional<bool?> deprecationErrors = default)

Parameters

version ServerApiVersion

The server API version.

strict Optional<bool?>

The flag for strict server API version enforcement.

deprecationErrors Optional<bool?>

The flag for treating deprecated server APIs as errors.