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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
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