Click or drag to resize

BsonArray.IndexOf Method (BsonValue)

Gets the index of a value in the array.

Namespace:  MongoDB.Bson
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public virtual int IndexOf(
	BsonValue value
)

Parameters

value
Type: MongoDB.Bson.BsonValue
The value to search for.

Return Value

Type: Int32
The zero based index of the value (or -1 if not found).

Implements

IList<T>.IndexOf(T)
See Also