Method ContainsValue

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson

Assembly

MongoDB.Bson.dll

ContainsValue(BsonValue)

Tests whether the document contains an element with the specified value.

public virtual bool ContainsValue(BsonValue value)

Parameters

value BsonValue

The value of the element to look for.

Returns

bool

True if the document contains an element with the specified value.