Table of Contents

Method Hashed

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Hashed(FieldDefinition<TDocument>)

Creates a hashed index key definition.

public IndexKeysDefinition<TDocument> Hashed(FieldDefinition<TDocument> field)

Parameters

field FieldDefinition<TDocument>

The field.

Returns

IndexKeysDefinition<TDocument>

A hashed index key definition.

Hashed(Expression<Func<TDocument, object>>)

Creates a hashed index key definition.

public IndexKeysDefinition<TDocument> Hashed(Expression<Func<TDocument, object>> field)

Parameters

field Expression<Func<TDocument, object>>

The field.

Returns

IndexKeysDefinition<TDocument>

A hashed index key definition.