Table of Contents

Class HintForFindAndModifyFeature

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

Represents the hint for find and modify feature.

public class HintForFindAndModifyFeature : Feature
Inheritance
HintForFindAndModifyFeature
Inherited Members

Constructors

HintForFindAndModifyFeature(string, int)

Initializes a new instance of the HintForFindAndModifyFeature class.

public HintForFindAndModifyFeature(string name, int firstSupportedWireVersion)

Parameters

name string

The name of the feature.

firstSupportedWireVersion int

The first wire version that supports the feature.

Methods

DriverMustThrowIfNotSupported(int)

Determines whether the driver must throw an exception if the feature is not supported by the server.

public bool DriverMustThrowIfNotSupported(int wireVersion)

Parameters

wireVersion int

The wire version.

Returns

bool

Whether the driver must throw if feature is not supported.