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
memberExpressionExpression<Func<TDocument, TMember>>The member expression.
valueTMemberThe value.
Returns
- GeoHaystackSearchArgs
The args so calls can be chained.
Type Parameters
TDocumentThe type of the document.
TMemberThe type of the member.