Method SetAdditionalField
SetAdditionalField(string, BsonValue)
Sets the name and value of the additional field.
public GeoHaystackSearchArgs SetAdditionalField(string name, BsonValue value)
Parameters
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
TMemberThe value.
Returns
- GeoHaystackSearchArgs
The args so calls can be chained.
Type Parameters
TDocument
The type of the document.
TMember
The type of the member.