Table of Contents

Method Exclude

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

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

Adds one or more field names to be excluded from the results.

public FieldsBuilder<TDocument> Exclude(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).