Table of Contents

Method SetAdditionalField

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

SetAdditionalField(string, BsonValue)

Sets the name and value of the additional field.

public GeoHaystackSearchArgs SetAdditionalField(string name, BsonValue value)

Parameters

name string

Name of the additional field.

value BsonValue

The value.

Returns

GeoHaystackSearchArgs

The args so calls can be chained.

SetAdditionalField<TDocument, TMember>(Expression<Func<TDocument, TMember>>, TMember)

Sets the name and value of the additional field.

public GeoHaystackSearchArgs SetAdditionalField<TDocument, TMember>(Expression<Func<TDocument, TMember>> memberExpression, TMember value)

Parameters

memberExpression Expression<Func<TDocument, TMember>>

The member expression.

value TMember

The value.

Returns

GeoHaystackSearchArgs

The args so calls can be chained.

Type Parameters

TDocument

The type of the document.

TMember

The type of the member.