Initializes a new instance of the
Feature class.
Namespace:
MongoDB.Driver.Core.Misc
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax public Feature(
string name,
SemanticVersion firstSupportedVersion,
SemanticVersion supportRemovedVersion = null,
string notSupportedMessage = null
)
Public Sub New (
name As String,
firstSupportedVersion As SemanticVersion,
Optional supportRemovedVersion As SemanticVersion = Nothing,
Optional notSupportedMessage As String = Nothing
)
new :
name : string *
firstSupportedVersion : SemanticVersion *
?supportRemovedVersion : SemanticVersion *
?notSupportedMessage : string
(* Defaults:
let _supportRemovedVersion = defaultArg supportRemovedVersion null
let _notSupportedMessage = defaultArg notSupportedMessage null
*)
-> Feature
Parameters
- name
- Type: SystemString
The name of the feature. - firstSupportedVersion
- Type: MongoDB.Driver.Core.MiscSemanticVersion
The first server version that supports the feature. - supportRemovedVersion (Optional)
- Type: MongoDB.Driver.Core.MiscSemanticVersion
The server version that stops support the feature. - notSupportedMessage (Optional)
- Type: SystemString
The not supported error message.
See Also