Table of Contents

Method SetWildcardProjection

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

SetWildcardProjection(string, bool)

Sets the wildcardProjection for the index.

public static IndexOptionsBuilder SetWildcardProjection(string name, bool included)

Parameters

name string

The field name.

included bool

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

Returns

IndexOptionsBuilder

The builder (so method calls can be chained).