C# Класс MongoDB.Bson.RawBsonArray

Наследование: BsonArray, IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CloneSlice IByteBuffer
CopyTo void
DeserializeBsonValue BsonValue
DeserializeRawBsonArray RawBsonArray
DeserializeRawBsonDocument RawBsonDocument

Открытые методы

Метод Описание
Add ( BsonValue value ) : BsonArray

Adds an element to the array.

AddRange ( IEnumerable values ) : BsonArray

Adds multiple elements to the array.

AddRange ( IEnumerable values ) : BsonArray

Adds multiple elements to the array.

AddRange ( IEnumerable values ) : BsonArray

Adds multiple elements to the array.

AddRange ( IEnumerable values ) : BsonArray

Adds multiple elements to the array.

AddRange ( IEnumerable values ) : BsonArray

Adds multiple elements to the array.

AddRange ( IEnumerable values ) : BsonArray

Adds multiple elements to the array.

AddRange ( IEnumerable values ) : BsonArray

Adds multiple elements to the array.

AddRange ( IEnumerable values ) : BsonArray

Adds multiple elements to the array.

AddRange ( IEnumerable values ) : BsonArray

Adds multiple elements to the array.

Clear ( ) : void

Clears the array.

Clone ( ) : BsonValue

Creates a shallow clone of the array (see also DeepClone).

Contains ( BsonValue value ) : bool

Tests whether the array contains a value.

CopyTo ( BsonValue array, int arrayIndex ) : void

Copies elements from this array to another array.

DeepClone ( ) : BsonValue

Creates a deep clone of the array (see also Clone).

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetEnumerator ( ) : IEnumerator

Gets an enumerator that can enumerate the elements of the array.

IndexOf ( BsonValue value ) : int

Gets the index of a value in the array.

IndexOf ( BsonValue value, int index ) : int

Gets the index of a value in the array.

IndexOf ( BsonValue value, int index, int count ) : int

Gets the index of a value in the array.

Insert ( int index, BsonValue value ) : void

Inserts a new value into the array.

RawBsonArray ( IByteBuffer slice ) : System

Initializes a new instance of the RawBsonArray class.

Remove ( BsonValue value ) : bool

Removes the first occurrence of a value from the array.

RemoveAt ( int index ) : void

Removes an element from the array.

ToArray ( ) : BsonValue[]

Converts the BsonArray to an array of BsonValues.

ToList ( ) : List

Converts the BsonArray to a list of BsonValues.

ToString ( ) : string

Returns a string representation of the array.

this ( int index ) : BsonValue

Gets or sets a value by position.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

ThrowIfDisposed ( ) : void

Throws if disposed.

Приватные методы

Метод Описание
CloneSlice ( ) : IByteBuffer
CopyTo ( object array, int arrayIndex ) : void
DeserializeBsonValue ( MongoDB.Bson.IO.BsonBinaryReader bsonReader ) : BsonValue
DeserializeRawBsonArray ( MongoDB.Bson.IO.BsonBinaryReader bsonReader ) : RawBsonArray
DeserializeRawBsonDocument ( MongoDB.Bson.IO.BsonBinaryReader bsonReader ) : RawBsonDocument

Описание методов

Add() публичный Метод

Adds an element to the array.
public Add ( BsonValue value ) : BsonArray
value BsonValue The value to add to the array.
Результат BsonArray

AddRange() публичный Метод

Adds multiple elements to the array.
public AddRange ( IEnumerable values ) : BsonArray
values IEnumerable A list of values to add to the array.
Результат BsonArray

AddRange() публичный Метод

Adds multiple elements to the array.
public AddRange ( IEnumerable values ) : BsonArray
values IEnumerable A list of values to add to the array.
Результат BsonArray

AddRange() публичный Метод

Adds multiple elements to the array.
public AddRange ( IEnumerable values ) : BsonArray
values IEnumerable A list of values to add to the array.
Результат BsonArray

AddRange() публичный Метод

Adds multiple elements to the array.
public AddRange ( IEnumerable values ) : BsonArray
values IEnumerable A list of values to add to the array.
Результат BsonArray

AddRange() публичный Метод

Adds multiple elements to the array.
public AddRange ( IEnumerable values ) : BsonArray
values IEnumerable A list of values to add to the array.
Результат BsonArray

AddRange() публичный Метод

Adds multiple elements to the array.
public AddRange ( IEnumerable values ) : BsonArray
values IEnumerable A list of values to add to the array.
Результат BsonArray

AddRange() публичный Метод

Adds multiple elements to the array.
public AddRange ( IEnumerable values ) : BsonArray
values IEnumerable A list of values to add to the array.
Результат BsonArray

AddRange() публичный Метод

Adds multiple elements to the array.
public AddRange ( IEnumerable values ) : BsonArray
values IEnumerable A list of values to add to the array.
Результат BsonArray

AddRange() публичный Метод

Adds multiple elements to the array.
public AddRange ( IEnumerable values ) : BsonArray
values IEnumerable A list of values to add to the array.
Результат BsonArray

Clear() публичный Метод

Clears the array.
public Clear ( ) : void
Результат void

Clone() публичный Метод

Creates a shallow clone of the array (see also DeepClone).
public Clone ( ) : BsonValue
Результат BsonValue

Contains() публичный Метод

Tests whether the array contains a value.
public Contains ( BsonValue value ) : bool
value BsonValue The value to test for.
Результат bool

CopyTo() публичный Метод

Copies elements from this array to another array.
public CopyTo ( BsonValue array, int arrayIndex ) : void
array BsonValue The other array.
arrayIndex int The zero based index of the other array at which to start copying.
Результат void

DeepClone() публичный Метод

Creates a deep clone of the array (see also Clone).
public DeepClone ( ) : BsonValue
Результат BsonValue

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

GetEnumerator() публичный Метод

Gets an enumerator that can enumerate the elements of the array.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

IndexOf() публичный Метод

Gets the index of a value in the array.
public IndexOf ( BsonValue value ) : int
value BsonValue The value to search for.
Результат int

IndexOf() публичный Метод

Gets the index of a value in the array.
public IndexOf ( BsonValue value, int index ) : int
value BsonValue The value to search for.
index int The zero based index at which to start the search.
Результат int

IndexOf() публичный Метод

Gets the index of a value in the array.
public IndexOf ( BsonValue value, int index, int count ) : int
value BsonValue The value to search for.
index int The zero based index at which to start the search.
count int The number of elements to search.
Результат int

Insert() публичный Метод

Inserts a new value into the array.
public Insert ( int index, BsonValue value ) : void
index int The zero based index at which to insert the new value.
value BsonValue The new value.
Результат void

RawBsonArray() публичный Метод

Initializes a new instance of the RawBsonArray class.
slice RawBsonArray cannot be used with an IByteBuffer that needs disposing.
public RawBsonArray ( IByteBuffer slice ) : System
slice IByteBuffer The slice.
Результат System

Remove() публичный Метод

Removes the first occurrence of a value from the array.
public Remove ( BsonValue value ) : bool
value BsonValue The value to remove.
Результат bool

RemoveAt() публичный Метод

Removes an element from the array.
public RemoveAt ( int index ) : void
index int The zero based index of the element to remove.
Результат void

ThrowIfDisposed() защищенный Метод

Throws if disposed.
protected ThrowIfDisposed ( ) : void
Результат void

ToArray() публичный Метод

Converts the BsonArray to an array of BsonValues.
public ToArray ( ) : BsonValue[]
Результат BsonValue[]

ToList() публичный Метод

Converts the BsonArray to a list of BsonValues.
public ToList ( ) : List
Результат List

ToString() публичный Метод

Returns a string representation of the array.
public ToString ( ) : string
Результат string

this() публичный Метод

Gets or sets a value by position.
public this ( int index ) : BsonValue
index int The position.
Результат BsonValue