BsonArray Class |
Namespace: MongoDB.Bson
The BsonArray type exposes the following members.
Name | Description | |
---|---|---|
BsonArray |
Initializes a new instance of the BsonArray class.
| |
BsonArray(IEnumerable) |
Initializes a new instance of the BsonArray class.
| |
BsonArray(IEnumerableBsonValue) |
Initializes a new instance of the BsonArray class.
| |
BsonArray(IEnumerableObjectId) |
Initializes a new instance of the BsonArray class.
| |
BsonArray(IEnumerableBoolean) |
Initializes a new instance of the BsonArray class.
| |
BsonArray(IEnumerableDateTime) |
Initializes a new instance of the BsonArray class.
| |
BsonArray(IEnumerableDouble) |
Initializes a new instance of the BsonArray class.
| |
BsonArray(IEnumerableInt32) |
Initializes a new instance of the BsonArray class.
| |
BsonArray(IEnumerableInt64) |
Initializes a new instance of the BsonArray class.
| |
BsonArray(IEnumerableString) |
Initializes a new instance of the BsonArray class.
| |
BsonArray(Int32) |
Initializes a new instance of the BsonArray class.
|
Name | Description | |
---|---|---|
AsBoolean |
Casts the BsonValue to a Boolean (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonArray |
Casts the BsonValue to a BsonArray (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonBinaryData |
Casts the BsonValue to a BsonBinaryData (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonDateTime |
Casts the BsonValue to a BsonDateTime (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonDocument |
Casts the BsonValue to a BsonDocument (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonJavaScript |
Casts the BsonValue to a BsonJavaScript (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonJavaScriptWithScope |
Casts the BsonValue to a BsonJavaScriptWithScope (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonMaxKey |
Casts the BsonValue to a BsonMaxKey (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonMinKey |
Casts the BsonValue to a BsonMinKey (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonNull |
Casts the BsonValue to a BsonNull (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonRegularExpression |
Casts the BsonValue to a BsonRegularExpression (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonSymbol |
Casts the BsonValue to a BsonSymbol (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonTimestamp |
Casts the BsonValue to a BsonTimestamp (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonUndefined |
Casts the BsonValue to a BsonUndefined (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsBsonValue |
Casts the BsonValue to a BsonValue (a way of upcasting subclasses of BsonValue to BsonValue at compile time).
(Inherited from BsonValue.) | |
AsByteArray |
Casts the BsonValue to a Byte[] (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsDateTime | Obsolete.
Casts the BsonValue to a DateTime in UTC (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsDecimal |
Casts the BsonValue to a Decimal (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsDecimal128 |
Casts the BsonValue to a Decimal128 (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsDouble |
Casts the BsonValue to a Double (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsGuid |
Casts the BsonValue to a Guid (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsInt32 |
Casts the BsonValue to an Int32 (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsInt64 |
Casts the BsonValue to a Int64 (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsLocalTime | Obsolete.
Casts the BsonValue to a DateTime in the local timezone (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsNullableBoolean |
Casts the BsonValue to a Nullable{Boolean} (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsNullableDateTime | Obsolete.
Casts the BsonValue to a Nullable{DateTime} (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsNullableDecimal |
Casts the BsonValue to a Nullable{Decimal} (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsNullableDecimal128 |
Casts the BsonValue to a Nullable{Decimal128} (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsNullableDouble |
Casts the BsonValue to a Nullable{Double} (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsNullableGuid |
Casts the BsonValue to a Nullable{Guid} (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsNullableInt32 |
Casts the BsonValue to a Nullable{Int32} (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsNullableInt64 |
Casts the BsonValue to a Nullable{Int64} (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsNullableObjectId |
Casts the BsonValue to a Nullable{ObjectId} (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsObjectId |
Casts the BsonValue to an ObjectId (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsRegex |
Casts the BsonValue to a Regex (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsString |
Casts the BsonValue to a String (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
AsUniversalTime | Obsolete.
Casts the BsonValue to a DateTime in UTC (throws an InvalidCastException if the cast is not valid).
(Inherited from BsonValue.) | |
BsonType |
Gets the BsonType of this BsonValue.
(Overrides BsonValueBsonType.) | |
Capacity |
Gets or sets the total number of elements the internal data structure can hold without resizing.
| |
Count |
Gets the count of array elements.
| |
IsBoolean |
Tests whether this BsonValue is a Boolean.
(Inherited from BsonValue.) | |
IsBsonArray |
Tests whether this BsonValue is a BsonArray.
(Inherited from BsonValue.) | |
IsBsonBinaryData |
Tests whether this BsonValue is a BsonBinaryData.
(Inherited from BsonValue.) | |
IsBsonDateTime |
Tests whether this BsonValue is a BsonDateTime.
(Inherited from BsonValue.) | |
IsBsonDocument |
Tests whether this BsonValue is a BsonDocument.
(Inherited from BsonValue.) | |
IsBsonJavaScript |
Tests whether this BsonValue is a BsonJavaScript.
(Inherited from BsonValue.) | |
IsBsonJavaScriptWithScope |
Tests whether this BsonValue is a BsonJavaScriptWithScope.
(Inherited from BsonValue.) | |
IsBsonMaxKey |
Tests whether this BsonValue is a BsonMaxKey.
(Inherited from BsonValue.) | |
IsBsonMinKey |
Tests whether this BsonValue is a BsonMinKey.
(Inherited from BsonValue.) | |
IsBsonNull |
Tests whether this BsonValue is a BsonNull.
(Inherited from BsonValue.) | |
IsBsonRegularExpression |
Tests whether this BsonValue is a BsonRegularExpression.
(Inherited from BsonValue.) | |
IsBsonSymbol |
Tests whether this BsonValue is a BsonSymbol .
(Inherited from BsonValue.) | |
IsBsonTimestamp |
Tests whether this BsonValue is a BsonTimestamp.
(Inherited from BsonValue.) | |
IsBsonUndefined |
Tests whether this BsonValue is a BsonUndefined.
(Inherited from BsonValue.) | |
IsDateTime | Obsolete.
Tests whether this BsonValue is a DateTime.
(Inherited from BsonValue.) | |
IsDecimal128 |
Tests whether this BsonValue is a Decimal128.
(Inherited from BsonValue.) | |
IsDouble |
Tests whether this BsonValue is a Double.
(Inherited from BsonValue.) | |
IsGuid |
Tests whether this BsonValue is a Guid.
(Inherited from BsonValue.) | |
IsInt32 |
Tests whether this BsonValue is an Int32.
(Inherited from BsonValue.) | |
IsInt64 |
Tests whether this BsonValue is an Int64.
(Inherited from BsonValue.) | |
IsNumeric |
Tests whether this BsonValue is a numeric value.
(Inherited from BsonValue.) | |
IsObjectId |
Tests whether this BsonValue is an ObjectId .
(Inherited from BsonValue.) | |
IsReadOnly |
Gets whether the array is read-only.
| |
IsString |
Tests whether this BsonValue is a String.
(Inherited from BsonValue.) | |
IsValidDateTime |
Tests whether this BsonValue is a valid DateTime.
(Inherited from BsonValue.) | |
ItemInt32 |
Gets or sets a value by position.
(Overrides BsonValueItemInt32.) | |
ItemString |
Gets or sets a value by name (only applies to BsonDocument).
(Inherited from BsonValue.) | |
RawValue | Obsolete.
Gets the raw value of this BsonValue (or null if this BsonValue doesn't have a single scalar value).
(Inherited from BsonValue.) | |
RawValues | Obsolete.
Gets the array elements as raw values (see BsonValue.RawValue).
| |
Values |
Gets the array elements.
|
Name | Description | |
---|---|---|
Add |
Adds an element to the array.
| |
AddRange(IEnumerable) |
Adds multiple elements to the array.
| |
AddRange(IEnumerableBsonValue) |
Adds multiple elements to the array.
| |
AddRange(IEnumerableObjectId) |
Adds multiple elements to the array.
| |
AddRange(IEnumerableBoolean) |
Adds multiple elements to the array.
| |
AddRange(IEnumerableDateTime) |
Adds multiple elements to the array.
| |
AddRange(IEnumerableDouble) |
Adds multiple elements to the array.
| |
AddRange(IEnumerableInt32) |
Adds multiple elements to the array.
| |
AddRange(IEnumerableInt64) |
Adds multiple elements to the array.
| |
AddRange(IEnumerableString) |
Adds multiple elements to the array.
| |
Clear |
Clears the array.
| |
Clone |
Creates a shallow clone of the array (see also DeepClone).
(Overrides BsonValueClone.) | |
CompareTo(BsonArray) |
Compares the array to another array.
| |
CompareTo(BsonValue) |
Compares the array to another BsonValue.
(Overrides BsonValueCompareTo(BsonValue).) | |
CompareTypeTo |
Compares the type of this BsonValue to the type of another BsonValue.
(Inherited from BsonValue.) | |
Contains |
Tests whether the array contains a value.
| |
CopyTo(BsonValue, Int32) |
Copies elements from this array to another array.
| |
CopyTo(Object, Int32) | Obsolete.
Copies elements from this array to another array as raw values (see BsonValue.RawValue).
| |
Create |
Creates a new BsonArray.
| |
DeepClone |
Creates a deep clone of the array (see also Clone).
(Overrides BsonValueDeepClone.) | |
Equals(BsonArray) |
Compares this array to another array.
| |
Equals(BsonValue) |
Compares this BsonValue to another BsonValue.
(Inherited from BsonValue.) | |
Equals(Object) |
Compares this BsonArray to another object.
(Overrides BsonValueEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator |
Gets an enumerator that can enumerate the elements of the array.
| |
GetHashCode |
Gets the hash code.
(Overrides BsonValueGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IConvertibleGetTypeCodeImplementation |
Implementation of the IConvertible GetTypeCode method.
(Inherited from BsonValue.) | |
IConvertibleToBooleanImplementation |
Implementation of the IConvertible ToBoolean method.
(Inherited from BsonValue.) | |
IConvertibleToByteImplementation |
Implementation of the IConvertible ToByte method.
(Inherited from BsonValue.) | |
IConvertibleToCharImplementation |
Implementation of the IConvertible ToChar method.
(Inherited from BsonValue.) | |
IConvertibleToDateTimeImplementation |
Implementation of the IConvertible ToDateTime method.
(Inherited from BsonValue.) | |
IConvertibleToDecimalImplementation |
Implementation of the IConvertible ToDecimal method.
(Inherited from BsonValue.) | |
IConvertibleToDoubleImplementation |
Implementation of the IConvertible ToDouble method.
(Inherited from BsonValue.) | |
IConvertibleToInt16Implementation |
Implementation of the IConvertible ToInt16 method.
(Inherited from BsonValue.) | |
IConvertibleToInt32Implementation |
Implementation of the IConvertible ToInt32 method.
(Inherited from BsonValue.) | |
IConvertibleToInt64Implementation |
Implementation of the IConvertible ToInt64 method.
(Inherited from BsonValue.) | |
IConvertibleToSByteImplementation |
Implementation of the IConvertible ToSByte method.
(Inherited from BsonValue.) | |
IConvertibleToSingleImplementation |
Implementation of the IConvertible ToSingle method.
(Inherited from BsonValue.) | |
IConvertibleToStringImplementation |
Implementation of the IConvertible ToString method.
(Inherited from BsonValue.) | |
IConvertibleToUInt16Implementation |
Implementation of the IConvertible ToUInt16 method.
(Inherited from BsonValue.) | |
IConvertibleToUInt32Implementation |
Implementation of the IConvertible ToUInt32 method.
(Inherited from BsonValue.) | |
IConvertibleToUInt64Implementation |
Implementation of the IConvertible ToUInt64 method.
(Inherited from BsonValue.) | |
IndexOf(BsonValue) |
Gets the index of a value in the array.
| |
IndexOf(BsonValue, Int32) |
Gets the index of a value in the array.
| |
IndexOf(BsonValue, Int32, Int32) |
Gets the index of a value in the array.
| |
Insert |
Inserts a new value into the array.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OperatorEqualsImplementation |
Implementation of operator ==.
(Inherited from BsonValue.) | |
Remove |
Removes the first occurrence of a value from the array.
| |
RemoveAt |
Removes an element from the array.
| |
ToArray |
Converts the BsonArray to an array of BsonValues.
| |
ToBoolean |
Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
(Inherited from BsonValue.) | |
ToDecimal |
Converts this BsonValue to a Decimal.
(Inherited from BsonValue.) | |
ToDecimal128 |
Converts this BsonValue to a Decimal128.
(Inherited from BsonValue.) | |
ToDouble |
Converts this BsonValue to a Double.
(Inherited from BsonValue.) | |
ToInt32 |
Converts this BsonValue to an Int32.
(Inherited from BsonValue.) | |
ToInt64 |
Converts this BsonValue to an Int64.
(Inherited from BsonValue.) | |
ToList |
Converts the BsonArray to a list of BsonValues.
| |
ToLocalTime |
Converts this BsonValue to a DateTime in local time.
(Inherited from BsonValue.) | |
ToNullableLocalTime |
Converts this BsonValue to a DateTime? in local time.
(Inherited from BsonValue.) | |
ToNullableUniversalTime |
Converts this BsonValue to a DateTime? in UTC.
(Inherited from BsonValue.) | |
ToString |
Returns a string representation of the array.
(Overrides ObjectToString.) | |
ToUniversalTime |
Converts this BsonValue to a DateTime in UTC.
(Inherited from BsonValue.) |
Name | Description | |
---|---|---|
Equality |
Compares two BsonArray values.
| |
Inequality |
Compares two BsonArray values.
|
Name | Description | |
---|---|---|
AllElementsBsonValue |
Represents all elements in an array (corresponds to the server's "$[]" update operator).
(Defined by MongoEnumerable.) | |
AllMatchingElementsBsonValue |
Represents all matching elements in an array when using an array filter (corresponds to the server's "$[identifier]" update operator).
(Defined by MongoEnumerable.) | |
ContainsAllBsonValue |
Determines whether a sequence contains all of the specified values.
(Defined by LinqToMongo.) | |
ContainsAnyBsonValue |
Determines whether a sequence contains any of the specified values.
(Defined by LinqToMongo.) | |
FirstMatchingElementBsonValue |
Represents the first matching element in an array used in a query (corresponds to the server's "$" update operator).
(Defined by MongoEnumerable.) | |
StandardDeviationPopulationBsonValue(FuncBsonValue, Int32) | Overloaded.
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationPopulationBsonValue(FuncBsonValue, NullableInt32) | Overloaded.
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationPopulationBsonValue(FuncBsonValue, Int64) | Overloaded.
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationPopulationBsonValue(FuncBsonValue, NullableInt64) | Overloaded.
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationPopulationBsonValue(FuncBsonValue, Single) | Overloaded.
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationPopulationBsonValue(FuncBsonValue, NullableSingle) | Overloaded.
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationPopulationBsonValue(FuncBsonValue, Double) | Overloaded.
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationPopulationBsonValue(FuncBsonValue, NullableDouble) | Overloaded.
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationPopulationBsonValue(FuncBsonValue, Decimal) | Overloaded.
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationPopulationBsonValue(FuncBsonValue, NullableDecimal) | Overloaded.
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationSampleBsonValue(FuncBsonValue, Int32) | Overloaded.
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationSampleBsonValue(FuncBsonValue, NullableInt32) | Overloaded.
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationSampleBsonValue(FuncBsonValue, Int64) | Overloaded.
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationSampleBsonValue(FuncBsonValue, NullableInt64) | Overloaded.
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationSampleBsonValue(FuncBsonValue, Single) | Overloaded.
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationSampleBsonValue(FuncBsonValue, NullableSingle) | Overloaded.
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationSampleBsonValue(FuncBsonValue, Double) | Overloaded.
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationSampleBsonValue(FuncBsonValue, NullableDouble) | Overloaded.
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationSampleBsonValue(FuncBsonValue, Decimal) | Overloaded.
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
StandardDeviationSampleBsonValue(FuncBsonValue, NullableDecimal) | Overloaded.
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by MongoEnumerable.) | |
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) | |
WhereBsonValue |
Filters a sequence of values based on a predicate and limits the number of results.
(Defined by MongoEnumerable.) |