Table of Contents

Method TryGetValue

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

TryGetValue(string, out BsonValue)

Tries to get the value of an element of this document.

public override bool TryGetValue(string name, out BsonValue value)

Parameters

name string

The name of the element.

value BsonValue

The value of the element.

Returns

bool

True if an element with that name was found.