Table of Contents

Method Contains

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Contains(string)

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

public virtual bool Contains(string name)

Parameters

name string

The name of the element to look for.

Returns

bool

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