RawBsonArray MethodsMongoDB C# Driver API Documentation

The RawBsonArray type exposes the following members.

Methods

  NameDescription
Public methodAdd
Adds an element to the array.
(Overrides BsonArrayAdd(BsonValue).)
Public methodAddRange(IEnumerableBoolean)
Adds multiple elements to the array.
(Overrides BsonArrayAddRange(IEnumerableBoolean).)
Public methodAddRange(IEnumerableDateTime)
Adds multiple elements to the array.
(Overrides BsonArrayAddRange(IEnumerableDateTime).)
Public methodAddRange(IEnumerableDouble)
Adds multiple elements to the array.
(Overrides BsonArrayAddRange(IEnumerableDouble).)
Public methodAddRange(IEnumerableInt32)
Adds multiple elements to the array.
(Overrides BsonArrayAddRange(IEnumerableInt32).)
Public methodAddRange(IEnumerableInt64)
Adds multiple elements to the array.
(Overrides BsonArrayAddRange(IEnumerableInt64).)
Public methodAddRange(IEnumerableString)
Adds multiple elements to the array.
(Overrides BsonArrayAddRange(IEnumerableString).)
Public methodAddRange(IEnumerable)
Adds multiple elements to the array.
(Overrides BsonArrayAddRange(IEnumerable).)
Public methodAddRange(IEnumerableBsonValue)
Adds multiple elements to the array.
(Overrides BsonArrayAddRange(IEnumerableBsonValue).)
Public methodAddRange(IEnumerableObjectId)
Adds multiple elements to the array.
(Overrides BsonArrayAddRange(IEnumerableObjectId).)
Public methodClear
Clears the array.
(Overrides BsonArrayClear.)
Public methodClone
Creates a shallow clone of the array (see also DeepClone).
(Overrides BsonArrayClone.)
Public methodCompareTo(BsonArray)
Compares the array to another array.
(Inherited from BsonArray.)
Public methodCompareTo(BsonValue)
Compares the array to another BsonValue.
(Inherited from BsonArray.)
Public methodCompareTypeTo
Compares the type of this BsonValue to the type of another BsonValue.
(Inherited from BsonValue.)
Public methodContains
Tests whether the array contains a value.
(Overrides BsonArrayContains(BsonValue).)
Public methodCopyTo(Object, Int32) Obsolete.
Copies elements from this array to another array as raw values (see BsonValue.RawValue).
(Overrides BsonArrayCopyTo(Object, Int32).)
Public methodCopyTo(BsonValue, Int32)
Copies elements from this array to another array.
(Overrides BsonArrayCopyTo(BsonValue, Int32).)
Public methodDeepClone
Creates a deep clone of the array (see also Clone).
(Overrides BsonArrayDeepClone.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodEquals(Object)
Compares this BsonArray to another object.
(Inherited from BsonArray.)
Public methodEquals(BsonArray)
Compares this array to another array.
(Inherited from BsonArray.)
Public methodEquals(BsonValue)
Compares this BsonValue to another BsonValue.
(Inherited from BsonValue.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Gets an enumerator that can enumerate the elements of the array.
(Overrides BsonArrayGetEnumerator.)
Public methodGetHashCode
Gets the hash code.
(Inherited from BsonArray.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodIndexOf(BsonValue)
Gets the index of a value in the array.
(Overrides BsonArrayIndexOf(BsonValue).)
Public methodIndexOf(BsonValue, Int32)
Gets the index of a value in the array.
(Overrides BsonArrayIndexOf(BsonValue, Int32).)
Public methodIndexOf(BsonValue, Int32, Int32)
Gets the index of a value in the array.
(Overrides BsonArrayIndexOf(BsonValue, Int32, Int32).)
Public methodInsert
Inserts a new value into the array.
(Overrides BsonArrayInsert(Int32, BsonValue).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOperatorEqualsImplementation
Implementation of operator ==.
(Inherited from BsonValue.)
Public methodRemove
Removes the first occurrence of a value from the array.
(Overrides BsonArrayRemove(BsonValue).)
Public methodRemoveAt
Removes an element from the array.
(Overrides BsonArrayRemoveAt(Int32).)
Protected methodThrowIfDisposed
Throws if disposed.
Public methodToArray
Converts the BsonArray to an array of BsonValues.
(Overrides BsonArrayToArray.)
Public methodToBoolean
Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
(Inherited from BsonValue.)
Public methodToDouble
Converts this BsonValue to a Double.
(Inherited from BsonValue.)
Public methodToInt32
Converts this BsonValue to an Int32.
(Inherited from BsonValue.)
Public methodToInt64
Converts this BsonValue to an Int64.
(Inherited from BsonValue.)
Public methodToList
Converts the BsonArray to a list of BsonValues.
(Overrides BsonArrayToList.)
Public methodToLocalTime
Converts this BsonValue to a DateTime in local time.
(Inherited from BsonValue.)
Public methodToNullableLocalTime
Converts this BsonValue to a DateTime? in local time.
(Inherited from BsonValue.)
Public methodToNullableUniversalTime
Converts this BsonValue to a DateTime? in UTC.
(Inherited from BsonValue.)
Public methodToString
Returns a string representation of the array.
(Overrides BsonArrayToString.)
Public methodToUniversalTime
Converts this BsonValue to a DateTime in UTC.
(Inherited from BsonValue.)
Public methodWriteTo Obsolete.
Writes the array to a BsonWriter.
(Inherited from BsonArray.)
Top
Extension Methods

  NameDescription
Public Extension MethodToBson(Type)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, BsonBinaryWriterSettings)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, IBsonSerializationOptions, BsonBinaryWriterSettings)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument(Type)Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, JsonWriterSettings)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, IBsonSerializationOptions, JsonWriterSettings)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also

Reference