Initializes a new instance of the
Feature class.
Namespace:
MongoDB.Driver.Core.Misc
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax public Feature(
string name,
int firstSupportedWireVersion,
Nullable<int> supportRemovedWireVersion = null,
string notSupportedMessage = null
)
Public Sub New (
name As String,
firstSupportedWireVersion As Integer,
Optional supportRemovedWireVersion As Nullable(Of 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