Initializes a new instance of the
Feature class.
Namespace:
MongoDB.Driver.Core.Misc
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public Feature(
string name,
int firstSupportedWireVersion,
int? supportRemovedWireVersion = null,
string notSupportedMessage = null
)
Public Sub New (
name As String,
firstSupportedWireVersion As Integer,
Optional supportRemovedWireVersion As Integer? = Nothing,
Optional notSupportedMessage As String = Nothing
)
new :
name : string *
firstSupportedWireVersion : int *
?supportRemovedWireVersion : Nullable<int> *
?notSupportedMessage : string
(* Defaults:
let _supportRemovedWireVersion = defaultArg supportRemovedWireVersion null
let _notSupportedMessage = defaultArg notSupportedMessage null
*)
-> Feature
Parameters
- name
- Type: SystemString
The name of the feature. - firstSupportedWireVersion
- Type: SystemInt32
The first wire version that supports the feature. - supportRemovedWireVersion (Optional)
- Type: SystemNullableInt32
The wire version that stops support the feature. - notSupportedMessage (Optional)
- Type: SystemString
The not supported error message.
See Also