Click or drag to resize

Feature Constructor

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
)

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