Initializes a new instance of the
ServerApi class.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax public ServerApi(
ServerApiVersion version,
Optional<Nullable<bool>> strict = null,
Optional<Nullable<bool>> deprecationErrors = null
)
Public Sub New (
version As ServerApiVersion,
Optional strict As Optional(Of Nullable(Of Boolean)) = Nothing,
Optional deprecationErrors As Optional(Of Nullable(Of Boolean)) = Nothing
)
new :
version : ServerApiVersion *
?strict : Optional<Nullable<bool>> *
?deprecationErrors : Optional<Nullable<bool>>
(* Defaults:
let _strict = defaultArg strict null
let _deprecationErrors = defaultArg deprecationErrors null
*)
-> ServerApi
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