Table of Contents

Method Hash

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Hash<TValue>(TValue, MqlHashAlgorithm)

Generates a binary hash for an input expression.

public static BsonBinaryData Hash<TValue>(TValue value, MqlHashAlgorithm algorithm)

Parameters

value TValue

The value.

algorithm MqlHashAlgorithm

The hashing algorithm.

Returns

BsonBinaryData

Generated hash as binary data.

Type Parameters

TValue

The type of the value.