Table of Contents

Method SetWildcardProjection

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

SetWildcardProjection<TMember>(Expression<Func<TDocument, TMember>>, bool)

Sets the wildcardProjection for the index.

public IndexOptionsBuilder<TDocument> SetWildcardProjection<TMember>(Expression<Func<TDocument, TMember>> memberExpression, bool included)

Parameters

memberExpression Expression<Func<TDocument, TMember>>

The member expression representing the wildcard projection field name.

included bool

The flag determines whether the field should be included or excluded from wildcard projecting.

Returns

IndexOptionsBuilder<TDocument>

The builder (so method calls can be chained).

Type Parameters

TMember

The type of the member.