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