Table of Contents

Method Include

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

Include(params Expression<Func<TDocument, object>>[])

Adds one or more field names to be included in the results.

public static FieldsBuilder<TDocument> Include(params Expression<Func<TDocument, object>>[] memberExpressions)

Parameters

memberExpressions Expression<Func<TDocument, object>>[]

The member expressions.

Returns

FieldsBuilder<TDocument>

The builder (so method calls can be chained).