Table of Contents

Class Feature

Namespace
MongoDB.Driver.Core.Misc
Assembly
MongoDB.Driver.Core.dll

Represents a feature that is not supported by all versions of the server.

public class Feature
Inheritance
Feature
Derived
Inherited Members

Constructors

Feature(string, int, int?, string)

Initializes a new instance of the Feature class.

public Feature(string name, int firstSupportedWireVersion, int? supportRemovedWireVersion = null, string notSupportedMessage = null)

Parameters

name string

The name of the feature.

firstSupportedWireVersion int

The first wire version that supports the feature.

supportRemovedWireVersion int?

The wire version that stops support the feature.

notSupportedMessage string

The not supported error message.

Properties

Aggregate

Gets the aggregate feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature Aggregate { get; }

Property Value

Feature

AggregateAccumulator

Gets the aggregate accumulato feature.

public static Feature AggregateAccumulator { get; }

Property Value

Feature

AggregateAddFields

Gets the aggregate AddFields feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateAddFields { get; }

Property Value

Feature

AggregateAllowDiskUse

Gets the aggregate allow disk use feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateAllowDiskUse { get; }

Property Value

Feature

AggregateBucketStage

Gets the aggregate bucket stage feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateBucketStage { get; }

Property Value

Feature

AggregateComment

Gets the aggregate comment feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateComment { get; }

Property Value

Feature

AggregateCountStage

Gets the aggregate count stage feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateCountStage { get; }

Property Value

Feature

AggregateCursorResult

Gets the aggregate cursor result feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateCursorResult { get; }

Property Value

Feature

AggregateExplain

Gets the aggregate explain feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateExplain { get; }

Property Value

Feature

AggregateFacetStage

Gets the aggregate $facet stage feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateFacetStage { get; }

Property Value

Feature

AggregateFunction

Gets the aggregate $function stage feature.

public static Feature AggregateFunction { get; }

Property Value

Feature

AggregateGraphLookupStage

Gets the aggregate $graphLookup stage feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateGraphLookupStage { get; }

Property Value

Feature

AggregateHint

Gets the aggregate hint feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateHint { get; }

Property Value

Feature

AggregateLet

Gets the aggregate lookup stage let feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateLet { get; }

Property Value

Feature

AggregateMerge

Gets the aggregate merge feature.

public static Feature AggregateMerge { get; }

Property Value

Feature

AggregateOptionsLet

Gets the aggregate let feature.

public static Feature AggregateOptionsLet { get; }

Property Value

Feature

AggregateOut

Gets the aggregate out feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature AggregateOut { get; }

Property Value

Feature

AggregateOutOnSecondary

Gets the aggregate out on secondary feature,

public static Feature AggregateOutOnSecondary { get; }

Property Value

Feature

AggregateOutToDifferentDatabase

Gets the aggregate out to a different database feature.

public static Feature AggregateOutToDifferentDatabase { get; }

Property Value

Feature

AggregateToString

Gets the aggregate toString feature.

public static Feature AggregateToString { get; }

Property Value

Feature

AggregateUnionWith

Gets the aggregate unionWith feature.

public static Feature AggregateUnionWith { get; }

Property Value

Feature

ArrayFilters

Gets the arrayFilters feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature ArrayFilters { get; }

Property Value

Feature

BypassDocumentValidation

Gets the bypass document validation feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature BypassDocumentValidation { get; }

Property Value

Feature

ChangeStreamAllChangesForCluster

Gets the change stream all changes for cluster feature.

public static Feature ChangeStreamAllChangesForCluster { get; }

Property Value

Feature

ChangeStreamForDatabase

Gets the change stream for database feature.

public static Feature ChangeStreamForDatabase { get; }

Property Value

Feature

ChangeStreamPostBatchResumeToken

Gets the change stream post batch resume token feature.

public static Feature ChangeStreamPostBatchResumeToken { get; }

Property Value

Feature

ChangeStreamPrePostImages

Gets the change stream pre post images feature.

public static Feature ChangeStreamPrePostImages { get; }

Property Value

Feature

ChangeStreamStage

Gets the aggregate $changeStream stage feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature ChangeStreamStage { get; }

Property Value

Feature

ClientSideEncryption

Gets the client side encryption feature.

public static Feature ClientSideEncryption { get; }

Property Value

Feature

ClusteredIndexes

Gets the clustered indexes feature.

public static Feature ClusteredIndexes { get; }

Property Value

Feature

Collation

Gets the collation feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature Collation { get; }

Property Value

Feature

CommandMessage

Gets the command message feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature CommandMessage { get; }

Property Value

Feature

CommandsThatWriteAcceptWriteConcern

Gets the commands that write accept write concern feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature CommandsThatWriteAcceptWriteConcern { get; }

Property Value

Feature

CreateIndexCommitQuorum

Gets the create index commit quorum feature.

public static Feature CreateIndexCommitQuorum { get; }

Property Value

Feature

CreateIndexesCommand

Gets the create indexes command feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature CreateIndexesCommand { get; }

Property Value

Feature

CreateIndexesUsingInsertOperations

Gets the create indexes using insert operations feature.

public static Feature CreateIndexesUsingInsertOperations { get; }

Property Value

Feature

Csfle2

Gets the client side field level encryption 2 feature.

public static Feature Csfle2 { get; }

Property Value

Feature

Csfle2QEv2

Gets the client side field level encryption 2 queryable encryption v2 feature.

public static Feature Csfle2QEv2 { get; }

Property Value

Feature

CsfleRangeAlgorithm

Gets the csfle range algorithm feature.

public static Feature CsfleRangeAlgorithm { get; }

Property Value

Feature

CurrentOpCommand

Gets the current op command feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature CurrentOpCommand { get; }

Property Value

Feature

DateOperatorsNewIn50

Gets the date operators added in 5.0 feature.

public static Feature DateOperatorsNewIn50 { get; }

Property Value

Feature

DensifyStage

Gets the aggregate $densify stage feature.

public static Feature DensifyStage { get; }

Property Value

Feature

DirectConnectionSetting

Gets the directConnection setting feature.

public static Feature DirectConnectionSetting { get; }

Property Value

Feature

DocumentValidation

Gets the document validation feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature DocumentValidation { get; }

Property Value

Feature

DocumentsStage

Gets the documents stage feature.

public static Feature DocumentsStage { get; }

Property Value

Feature

ElectionIdPriorityInSDAM

Gets the electionIdPriorityInSDAM feature.

public static Feature ElectionIdPriorityInSDAM { get; }

Property Value

Feature

Eval

Gets the eval feature.

public static Feature Eval { get; }

Property Value

Feature

ExplainCommand

Gets the explain command feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature ExplainCommand { get; }

Property Value

Feature

FailPoints

Gets the fail points feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature FailPoints { get; }

Property Value

Feature

FailPointsBlockConnection

Gets the fail points block connection feature.

public static Feature FailPointsBlockConnection { get; }

Property Value

Feature

FailPointsFailCommand

Gets the fail points fail command feature.

public static Feature FailPointsFailCommand { get; }

Property Value

Feature

FailPointsFailCommandForSharded

Gets the fail points fail command for sharded feature.

public static Feature FailPointsFailCommandForSharded { get; }

Property Value

Feature

FilterLimit

Gets filter limit feature.

public static Feature FilterLimit { get; }

Property Value

Feature

FindAllowDiskUse

Gets the find allowDiskUse feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature FindAllowDiskUse { get; }

Property Value

Feature

FindAndModifyWriteConcern

Gets the find and modify write concern feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature FindAndModifyWriteConcern { get; }

Property Value

Feature

FindCommand

Gets the find command feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature FindCommand { get; }

Property Value

Feature

FindProjectionExpressions

Gets the find projection expressions feature.

public static Feature FindProjectionExpressions { get; }

Property Value

Feature

GeoNearCommand

Gets the geoNear command feature.

public static Feature GeoNearCommand { get; }

Property Value

Feature

GetField

Gets the getField feature.

public static Feature GetField { get; }

Property Value

Feature

GetMoreComment

Gets the getMore comment feature.

public static Feature GetMoreComment { get; }

Property Value

Feature

GroupCommand

Gets the group command feature.

public static Feature GroupCommand { get; }

Property Value

Feature

HedgedReads

Gets the hedged reads feature.

public static Feature HedgedReads { get; }

Property Value

Feature

HiddenIndex

Gets the hidden index feature.

public static Feature HiddenIndex { get; }

Property Value

Feature

HintForDeleteOperations

Gets the hint for delete operations feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature HintForDeleteOperations { get; }

Property Value

Feature

HintForFindAndModifyFeature

Gets the hint for find and modify operations feature.

public static HintForFindAndModifyFeature HintForFindAndModifyFeature { get; }

Property Value

HintForFindAndModifyFeature

HintForUpdateAndReplaceOperations

Gets the hint for update and replace operations feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature HintForUpdateAndReplaceOperations { get; }

Property Value

Feature

IndexOptionsDefaults

Gets the index options defaults feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature IndexOptionsDefaults { get; }

Property Value

Feature

KeepConnectionPoolWhenNotMasterConnectionException

Gets the keep connection pool when NotPrimary connection exception feature.

[Obsolete("Use KeepConnectionPoolWhenNotPrimaryConnectionException instead.")]
public static Feature KeepConnectionPoolWhenNotMasterConnectionException { get; }

Property Value

Feature

KeepConnectionPoolWhenNotPrimaryConnectionException

Gets the keep connection pool when NotPrimary connection exception feature.

public static Feature KeepConnectionPoolWhenNotPrimaryConnectionException { get; }

Property Value

Feature

KeepConnectionPoolWhenReplSetStepDown

Gets the keep connection pool when replSetStepDown feature.

public static Feature KeepConnectionPoolWhenReplSetStepDown { get; }

Property Value

Feature

KillAllSessions

Get the killAllSessions feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature KillAllSessions { get; }

Property Value

Feature

KillCursorsCommand

Get the killCursors command feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature KillCursorsCommand { get; }

Property Value

Feature

LegacyWireProtocol

Gets the legacy wire protocol feature.

public static Feature LegacyWireProtocol { get; }

Property Value

Feature

ListCollectionsCommand

Gets the list collections command feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature ListCollectionsCommand { get; }

Property Value

Feature

ListDatabasesAuthorizedDatabases

Get the list databases authorizedDatabases feature.

public static Feature ListDatabasesAuthorizedDatabases { get; }

Property Value

Feature

ListDatabasesFilter

Gets the list databases filter feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature ListDatabasesFilter { get; }

Property Value

Feature

ListDatabasesNameOnlyOption

Get the list databases nameOnly feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature ListDatabasesNameOnlyOption { get; }

Property Value

Feature

ListIndexesCommand

Gets the list indexes command feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature ListIndexesCommand { get; }

Property Value

Feature

LoadBalancedMode

Gets the load balanced mode feature.

public static Feature LoadBalancedMode { get; }

Property Value

Feature

MaxStaleness

Gets the maximum staleness feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature MaxStaleness { get; }

Property Value

Feature

MaxTime

Gets the maximum time feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature MaxTime { get; }

Property Value

Feature

MmapV1StorageEngine

Gets the mmapv1 storage engine feature.

public static Feature MmapV1StorageEngine { get; }

Property Value

Feature

Name

Gets the name of the feature.

public string Name { get; }

Property Value

string

NotSupportedMessage

Gets the error message to be used by the feature support checks.

public string NotSupportedMessage { get; }

Property Value

string

PartialIndexes

Gets the partial indexes feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature PartialIndexes { get; }

Property Value

Feature

PickAccumulatorsNewIn52

Gets the pick accumulators new in 5.2 feature.

public static Feature PickAccumulatorsNewIn52 { get; }

Property Value

Feature

ReadConcern

Gets the read concern feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature ReadConcern { get; }

Property Value

Feature

RegexMatch

Gets the regex match feature.

public static Feature RegexMatch { get; }

Property Value

Feature

RetryableReads

Gets the retryable reads feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature RetryableReads { get; }

Property Value

Feature

RetryableWrites

Gets the retryable writes feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature RetryableWrites { get; }

Property Value

Feature

Round

Gets the $round feature.

public static Feature Round { get; }

Property Value

Feature

ScramSha1Authentication

Gets the scram sha1 authentication feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature ScramSha1Authentication { get; }

Property Value

Feature

ScramSha256Authentication

Gets the scram sha256 authentication feature.

public static Feature ScramSha256Authentication { get; }

Property Value

Feature

ServerExtractsUsernameFromX509Certificate

Gets the server extracts username from X509 certificate feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature ServerExtractsUsernameFromX509Certificate { get; }

Property Value

Feature

ServerReturnsResumableChangeStreamErrorLabel

Gets the server returns resumableChangeStream label feature.

public static Feature ServerReturnsResumableChangeStreamErrorLabel { get; }

Property Value

Feature

ServerReturnsRetryableWriteErrorLabel

Gets the server returns retryable writeError label feature.

public static Feature ServerReturnsRetryableWriteErrorLabel { get; }

Property Value

Feature

SetStage

Gets the $set stage feature.

public static Feature SetStage { get; }

Property Value

Feature

SetWindowFields

Gets the set window fields feature.

public static Feature SetWindowFields { get; }

Property Value

Feature

SetWindowFieldsLocf

Gets the set window fields $locf feature.

public static Feature SetWindowFieldsLocf { get; }

Property Value

Feature

ShardedTransactions

Gets the sharded transactions feature.

public static Feature ShardedTransactions { get; }

Property Value

Feature

SnapshotReads

Gets the snapshot reads feature.

public static Feature SnapshotReads { get; }

Property Value

Feature

SortArrayOperator

Gets the $sortArray operator feature.

public static Feature SortArrayOperator { get; }

Property Value

Feature

SpeculativeAuthentication

Gets the speculative authentication feature.

public static Feature SpeculativeAuthentication { get; }

Property Value

Feature

StableApi

Gets the speculative authentication feature.

public static Feature StableApi { get; }

Property Value

Feature

StreamingHello

Gets the streaming hello feature.

public static Feature StreamingHello { get; }

Property Value

Feature

StreamingIsMaster

Gets the streaming hello feature.

[Obsolete("Use StreamingHello instead.")]
public static Feature StreamingIsMaster { get; }

Property Value

Feature

TailableCursor

Gets the tailable cursor feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature TailableCursor { get; }

Property Value

Feature

ToConversionOperators

Gets the $toXyz conversion operators feature ($toDouble etc.).

public static Feature ToConversionOperators { get; }

Property Value

Feature

Transactions

Gets the transactions feature.

public static Feature Transactions { get; }

Property Value

Feature

TrigOperators

Gets the trig operators feature.

public static Feature TrigOperators { get; }

Property Value

Feature

TrimOperator

Gets the trim operator feature.

public static Feature TrimOperator { get; }

Property Value

Feature

UpdateWithAggregationPipeline

Gets the update with aggregation pipeline feature.

public static Feature UpdateWithAggregationPipeline { get; }

Property Value

Feature

UserManagementCommands

Gets the user management commands feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature UserManagementCommands { get; }

Property Value

Feature

Views

Gets the views feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature Views { get; }

Property Value

Feature

WildcardIndexes

Gets the wildcard indexes feature.

public static Feature WildcardIndexes { get; }

Property Value

Feature

WriteCommands

Gets the write commands feature.

[Obsolete("This property will be removed in a later release.")]
public static Feature WriteCommands { get; }

Property Value

Feature

Methods

ToString()

public override string ToString()

Returns

string