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.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public Feature(
	string name,
	int firstSupportedWireVersion,
	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