Table of Contents

Method AddRange

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

AddRange(IEnumerable<bool>)

Adds multiple elements to the array.

public override BsonArray AddRange(IEnumerable<bool> values)

Parameters

values IEnumerable<bool>

A list of values to add to the array.

Returns

BsonArray

The array (so method calls can be chained).

AddRange(IEnumerable<BsonValue>)

Adds multiple elements to the array.

public override BsonArray AddRange(IEnumerable<BsonValue> values)

Parameters

values IEnumerable<BsonValue>

A list of values to add to the array.

Returns

BsonArray

The array (so method calls can be chained).

AddRange(IEnumerable<DateTime>)

Adds multiple elements to the array.

public override BsonArray AddRange(IEnumerable<DateTime> values)

Parameters

values IEnumerable<DateTime>

A list of values to add to the array.

Returns

BsonArray

The array (so method calls can be chained).

AddRange(IEnumerable<double>)

Adds multiple elements to the array.

public override BsonArray AddRange(IEnumerable<double> values)

Parameters

values IEnumerable<double>

A list of values to add to the array.

Returns

BsonArray

The array (so method calls can be chained).

AddRange(IEnumerable<int>)

Adds multiple elements to the array.

public override BsonArray AddRange(IEnumerable<int> values)

Parameters

values IEnumerable<int>

A list of values to add to the array.

Returns

BsonArray

The array (so method calls can be chained).

AddRange(IEnumerable<long>)

Adds multiple elements to the array.

public override BsonArray AddRange(IEnumerable<long> values)

Parameters

values IEnumerable<long>

A list of values to add to the array.

Returns

BsonArray

The array (so method calls can be chained).

AddRange(IEnumerable<ObjectId>)

Adds multiple elements to the array.

public override BsonArray AddRange(IEnumerable<ObjectId> values)

Parameters

values IEnumerable<ObjectId>

A list of values to add to the array.

Returns

BsonArray

The array (so method calls can be chained).

AddRange(IEnumerable<string>)

Adds multiple elements to the array.

public override BsonArray AddRange(IEnumerable<string> values)

Parameters

values IEnumerable<string>

A list of values to add to the array.

Returns

BsonArray

The array (so method calls can be chained).

AddRange(IEnumerable)

Adds multiple elements to the array.

public override BsonArray AddRange(IEnumerable values)

Parameters

values IEnumerable

A list of values to add to the array.

Returns

BsonArray

The array (so method calls can be chained).