DataView Класс
Определение
Представляет допускающее привязку данных, настраиваемое представление DataTable для сортировки, фильтрации, поиска, изменения и навигации.Represents a databindable, customized view of a DataTable for sorting, filtering, searching, editing, and navigation. DataView не сохраняет данные, а представляет связанное представление соответствующего DataTable.The DataView does not store data, but instead represents a connected view of its corresponding DataTable. Изменения данных DataView повлияют на DataTable.Changes to the DataView's data will affect the DataTable. Изменения данных DataTable повлияют на все связанные с ним DataView.Changes to the DataTable's data will affect all DataViews associated with it.
public ref class DataView : System::ComponentModel::MarshalByValueComponent, System::Collections::IList, System::ComponentModel::IBindingListView, System::ComponentModel::ISupportInitialize, System::ComponentModel::ISupportInitializeNotification, System::ComponentModel::ITypedList
public ref class DataView : System::ComponentModel::MarshalByValueComponent, System::Collections::IList, System::ComponentModel::IBindingList, System::ComponentModel::ISupportInitialize, System::ComponentModel::ITypedList
public ref class DataView : System::ComponentModel::MarshalByValueComponent, System::Collections::IList, System::ComponentModel::IBindingListView, System::ComponentModel::ISupportInitializeNotification, System::ComponentModel::ITypedList
public ref class DataView : System::ComponentModel::MarshalByValueComponent, System::ComponentModel::IBindingListView, System::ComponentModel::ISupportInitializeNotification, System::ComponentModel::ITypedList
public class DataView : System.ComponentModel.MarshalByValueComponent, System.Collections.IList, System.ComponentModel.IBindingListView, System.ComponentModel.ISupportInitialize, System.ComponentModel.ISupportInitializeNotification, System.ComponentModel.ITypedList
public class DataView : System.ComponentModel.MarshalByValueComponent, System.Collections.IList, System.ComponentModel.IBindingList, System.ComponentModel.ISupportInitialize, System.ComponentModel.ITypedList
public class DataView : System.ComponentModel.MarshalByValueComponent, System.Collections.IList, System.ComponentModel.IBindingListView, System.ComponentModel.ISupportInitializeNotification, System.ComponentModel.ITypedList
public class DataView : System.ComponentModel.MarshalByValueComponent, System.ComponentModel.IBindingListView, System.ComponentModel.ISupportInitializeNotification, System.ComponentModel.ITypedList
type DataView = class
inherit MarshalByValueComponent
interface ICollection
interface IEnumerable
interface IList
interface IBindingList
interface IBindingListView
interface ISupportInitialize
interface ISupportInitializeNotification
interface ITypedList
type DataView = class
inherit MarshalByValueComponent
interface IBindingList
interface IList
interface ICollection
interface IEnumerable
interface ITypedList
interface ISupportInitialize
type DataView = class
inherit MarshalByValueComponent
interface IBindingListView
interface IBindingList
interface IList
interface ICollection
interface IEnumerable
interface ITypedList
interface ISupportInitializeNotification
interface ISupportInitialize
type DataView = class
inherit MarshalByValueComponent
interface IBindingListView
interface ITypedList
interface ISupportInitializeNotification
interface IBindingList
interface IList
interface ICollection
interface IEnumerable
interface ISupportInitialize
Public Class DataView
Inherits MarshalByValueComponent
Implements IBindingListView, IList, ISupportInitialize, ISupportInitializeNotification, ITypedList
Public Class DataView
Inherits MarshalByValueComponent
Implements IBindingList, IList, ISupportInitialize, ITypedList
Public Class DataView
Inherits MarshalByValueComponent
Implements IBindingListView, IList, ISupportInitializeNotification, ITypedList
Public Class DataView
Inherits MarshalByValueComponent
Implements IBindingListView, ISupportInitializeNotification, ITypedList
- Наследование
- Реализации
Примеры
В следующем примере создается один DataTable столбец с одним и пятью строками.The following example creates a single DataTable with one column and five rows. DataViewСоздаются два объекта, и для RowStateFilter каждого из них устанавливается значение для отображения различных представлений данных таблицы.Two DataView objects are created and the RowStateFilter is set on each to show different views of the table data. Затем значения выводятся на печать.The values are then printed.
using System;
using System.Xml;
using System.Data;
using System.Data.Common;
using System.Windows.Forms;
public class Form1: Form
{
protected DataSet DataSet1;
protected DataGrid dataGrid1;
private void DemonstrateDataView()
{
// Create one DataTable with one column.
DataTable table = new DataTable("table");
DataColumn colItem = new DataColumn("item",
Type.GetType("System.String"));
table.Columns.Add(colItem);
// Add five items.
DataRow NewRow;
for(int i = 0; i <5; i++)
{
NewRow = table.NewRow();
NewRow["item"] = "Item " + i;
table.Rows.Add(NewRow);
}
// Change the values in the table.
table.AcceptChanges();
table.Rows[0]["item"]="cat";
table.Rows[1]["item"] = "dog";
// Create two DataView objects with the same table.
DataView firstView = new DataView(table);
DataView secondView = new DataView(table);
// Print current table values.
PrintTableOrView(table,"Current Values in Table");
// Set first DataView to show only modified
// versions of original rows.
firstView.RowStateFilter=DataViewRowState.ModifiedOriginal;
// Print values.
PrintTableOrView(firstView,"First DataView: ModifiedOriginal");
// Add one New row to the second view.
DataRowView rowView;
rowView=secondView.AddNew();
rowView["item"] = "fish";
// Set second DataView to show modified versions of
// current rows, or New rows.
secondView.RowStateFilter=DataViewRowState.ModifiedCurrent
| DataViewRowState.Added;
// Print modified and Added rows.
PrintTableOrView(secondView,
"Second DataView: ModifiedCurrent | Added");
}
private void PrintTableOrView(DataTable table, string label)
{
// This function prints values in the table or DataView.
Console.WriteLine("\n" + label);
for(int i = 0; i<table.Rows.Count;i++)
{
Console.WriteLine("\table" + table.Rows[i]["item"]);
}
Console.WriteLine();
}
private void PrintTableOrView(DataView view, string label)
{
// This overload prints values in the table or DataView.
Console.WriteLine("\n" + label);
for(int i = 0; i<view.Count;i++)
{
Console.WriteLine("\table" + view[i]["item"]);
}
Console.WriteLine();
}
}
Private Sub DemonstrateDataView()
' Create one DataTable with one column.
Dim table As New DataTable("table")
Dim colItem As New DataColumn("item", _
Type.GetType("System.String"))
table.Columns.Add(colItem)
' Add five items.
Dim NewRow As DataRow
Dim i As Integer
For i = 0 To 4
NewRow = table.NewRow()
NewRow("item") = "Item " & i
table.Rows.Add(NewRow)
Next
table.AcceptChanges()
' Create two DataView objects with the same table.
Dim firstView As New DataView(table)
Dim secondView As New DataView(table)
' Change the values in the table.
table.Rows(0)("item") = "cat"
table.Rows(1)("item") = "dog"
' Print current table values.
PrintTableOrView(table, "Current Values in Table")
' Set first DataView to show only modified versions of original rows.
firstView.RowStateFilter = DataViewRowState.ModifiedOriginal
' Print values.
PrintTableOrView(firstView, "First DataView: ModifiedOriginal")
' Add one New row to the second view.
Dim rowView As DataRowView
rowView = secondView.AddNew()
rowView("item") = "fish"
' Set second DataView to show modified versions of
' current rows, or New rows.
secondView.RowStateFilter = DataViewRowState.ModifiedCurrent _
Or DataViewRowState.Added
' Print modified and Added rows.
PrintTableOrView(secondView, _
"Second DataView: ModifiedCurrent or Added")
End Sub
Overloads Private Sub PrintTableOrView( _
ByVal view As DataView, ByVal label As String)
Console.WriteLine(label)
Dim i As Integer
For i = 0 To view.count - 1
Console.WriteLine(view(i)("item"))
Next
Console.WriteLine()
End Sub
Overloads Private Sub PrintTableOrView( _
ByVal table As DataTable, ByVal label As String)
Console.WriteLine(label)
Dim i As Integer
For i = 0 To table.Rows.Count - 1
Console.WriteLine(table.Rows(i)("item"))
Next
Console.WriteLine()
End Sub
В следующем примере создается DataView заказ из сети, упорядоченный по общему количеству из-за LINQ to DataSetLINQ to DataSet запроса.The following example creates a DataView of online orders ordered by total due from a LINQ to DataSetLINQ to DataSet query:
DataTable orders = dataSet.Tables["SalesOrderHeader"];
EnumerableRowCollection<DataRow> query =
from order in orders.AsEnumerable()
where order.Field<bool>("OnlineOrderFlag") == true
orderby order.Field<decimal>("TotalDue")
select order;
DataView view = query.AsDataView();
bindingSource1.DataSource = view;
Dim orders As DataTable = dataSet.Tables("SalesOrderHeader")
Dim query = _
From order In orders.AsEnumerable() _
Where order.Field(Of Boolean)("OnlineOrderFlag") = True _
Order By order.Field(Of Decimal)("TotalDue") _
Select order
Dim view As DataView = query.AsDataView()
bindingSource1.DataSource = view
Комментарии
Основная функция класса DataView — разрешить привязку данных как для Windows Forms, так и для веб-форм.A major function of the DataView is to allow for data binding on both Windows Forms and Web Forms.
Кроме того, DataView можно настроить для представления подмножества данных из DataTable .Additionally, a DataView can be customized to present a subset of data from the DataTable. Эта возможность позволяет иметь два элемента управления, привязанных к одному DataTable , но при этом отображаются разные версии данных.This capability lets you have two controls bound to the same DataTable, but that show different versions of the data. Например, один элемент управления может быть привязан к объекту DataView , который отображает все строки в таблице, а вторая может быть настроена на отображение только тех строк, которые были удалены из DataTable .For example, one control might be bound to a DataView that shows all the rows in the table, and a second might be configured to display only the rows that have been deleted from the DataTable. DataTableТакже имеет DefaultView свойство.The DataTable also has a DefaultView property. Он возвращает значение по умолчанию DataView для таблицы.This returns the default DataView for the table. Например, если вы хотите создать пользовательское представление для таблицы, задайте значение RowFilter для свойства, DataView возвращаемого DefaultView .For example, if you want to create a custom view on the table, set the RowFilter on the DataView returned by the DefaultView.
Чтобы создать отфильтрованное и отсортированное представление данных, задайте RowFilter Свойства и Sort .To create a filtered and sorted view of data, set the RowFilter and Sort properties. Затем используйте свойство, Item[] чтобы вернуть один объект DataRowView .Then, use the Item[] property to return a single DataRowView.
Также можно добавлять и удалять данные из набора строк с помощью AddNew Delete методов и.You can also add and delete from the set of rows using the AddNew and Delete methods. При использовании этих методов RowStateFilter свойство может задать, чтобы только удаленные строки или новые строки отображались DataView .When you use those methods, the RowStateFilter property can set to specify that only deleted rows or new rows be displayed by the DataView.
Примечание
Если не указать явно критерий сортировки для DataView
, DataRowView
объекты в DataView
сортируются на основе индекса объекта DataView, соответствующего DataRow
в объекте DataTable.Rows
DataRowCollection
.If you do not explicitly specify sort criteria for DataView
, the DataRowView
objects in DataView
are sorted based on the index of DataView's corresponding DataRow
in the DataTable.Rows
DataRowCollection
.
LINQ to DataSetLINQ to DataSet позволяет разработчикам создавать сложные, мощные запросы с DataSet помощью LINQLINQ .allows developers to create complex, powerful queries over a DataSet by using LINQLINQ. LINQ to DataSetLINQ to DataSetОднако запрос возвращает перечисление DataRow объектов, что несложно использовать в сценарии привязки.A LINQ to DataSetLINQ to DataSet query returns an enumeration of DataRow objects, however, which is not easily used in a binding scenario. DataView может быть создан из LINQ to DataSetLINQ to DataSet запроса и принимает характеристики фильтрации и сортировки этого запроса.DataView can be created from a LINQ to DataSetLINQ to DataSet query and takes on the filtering and sorting characteristics of that query. LINQ to DataSetLINQ to DataSet расширяет функциональные возможности, DataView предоставляя LINQLINQ фильтрацию и сортировку на основе выражений, что позволяет выполнять гораздо более сложные и эффективные операции фильтрации и сортировки, чем фильтрация и сортировка на основе строк.extends the functionality of the DataView by providing LINQLINQ expression-based filtering and sorting, which allows for much more complex and powerful filtering and sorting operations than string-based filtering and sorting. Дополнительные сведения см. в разделе Привязка данных и LINQ to DataSet .See Data Binding and LINQ to DataSet for more information.
Конструкторы
DataView() |
Инициализирует новый экземпляр класса DataView.Initializes a new instance of the DataView class. |
DataView(DataTable) |
Инициализирует новый экземпляр класса DataView указанным значением DataTable.Initializes a new instance of the DataView class with the specified DataTable. |
DataView(DataTable, String, String, DataViewRowState) |
Инициализирует новый экземпляр класса DataView заданными свойствами DataTable, RowFilter, Sort и DataViewRowState.Initializes a new instance of the DataView class with the specified DataTable, RowFilter, Sort, and DataViewRowState. |
Свойства
AllowDelete |
Возвращает или задает значение, указывающее, разрешено ли удаление.Gets or sets a value that indicates whether deletes are allowed. |
AllowEdit |
Возвращает или задает значение, указывающее, разрешено ли внесение изменений.Gets or sets a value that indicates whether edits are allowed. |
AllowNew |
Получает или задает значение, указывающее, можно ли добавлять новые строки с помощью метода AddNew().Gets or sets a value that indicates whether the new rows can be added by using the AddNew() method. |
ApplyDefaultSort |
Возвращает или задает значение, указывающее, следует ли использовать сортировку по умолчанию.Gets or sets a value that indicates whether to use the default sort. По умолчанию сортировка (по возрастанию) по всем первичными ключам, как определено PrimaryKey.The default sort is (ascending) by all primary keys as specified by PrimaryKey. |
Container |
Возвращает контейнер для компонента.Gets the container for the component. (Унаследовано от MarshalByValueComponent) |
Count |
Получает число записей в DataView после применения свойств RowFilter и RowStateFilter.Gets the number of records in the DataView after RowFilter and RowStateFilter have been applied. |
DataViewManager |
Возвращает объект DataViewManager, связанный с этим представлением.Gets the DataViewManager associated with this view. |
DesignMode |
Возвращает значение, показывающее, находится ли компонент в настоящий момент в режиме разработки.Gets a value indicating whether the component is currently in design mode. (Унаследовано от MarshalByValueComponent) |
Events |
Возвращает список обработчиков событий, которые прикреплены к этому компоненту.Gets the list of event handlers that are attached to this component. (Унаследовано от MarshalByValueComponent) |
IsInitialized |
Возвращает значение, указывающее, был ли инициализирован компонент.Gets a value that indicates whether the component is initialized. |
IsOpen |
Получает значение, определяющее, открыт ли сейчас источник данных, а также представления проектных данных в объекте DataTable.Gets a value that indicates whether the data source is currently open and projecting views of data on the DataTable. |
Item[Int32] |
Получает строку данных из указанной таблицы.Gets a row of data from a specified table. |
RowFilter |
Возвращает или задает выражение, используемое для выбора строк, просматриваемых в объекте DataView.Gets or sets the expression used to filter which rows are viewed in the DataView. |
RowStateFilter |
Возвращает или задает фильтр состояния строк, применяемый в DataView.Gets or sets the row state filter used in the DataView. |
Site |
Возвращает или задает сайт компонента.Gets or sets the site of the component. (Унаследовано от MarshalByValueComponent) |
Sort |
Возвращает или задает столбец или столбцы для сортировки, а затем — порядок сортировки для DataView.Gets or sets the sort column or columns, and sort order for the DataView. |
Table |
Возвращает или задает исходный объект DataTable.Gets or sets the source DataTable. |
Методы
AddNew() |
Добавляет новую строку в DataView.Adds a new row to the DataView. |
BeginInit() |
Запускает инициализацию DataView, используемого в форме или другим компонентом.Starts the initialization of a DataView that is used on a form or used by another component. Инициализация происходит во время выполнения.The initialization occurs at runtime. |
Close() | |
ColumnCollectionChanged(Object, CollectionChangeEventArgs) |
Происходит после успешного изменения DataColumnCollection.Occurs after a DataColumnCollection has been changed successfully. |
CopyTo(Array, Int32) |
Копирует элементы в массив.Copies items into an array. Только для интерфейсов веб-форм.Only for Web Forms Interfaces. |
Delete(Int32) |
Удаляет строку с заданным индексом.Deletes a row at the specified index. |
Dispose() |
Освобождает все ресурсы, занятые модулем MarshalByValueComponent.Releases all resources used by the MarshalByValueComponent. (Унаследовано от MarshalByValueComponent) |
Dispose(Boolean) |
Освобождает все используемые объектом DataView ресурсы, кроме памяти.Disposes of the resources (other than memory) used by the DataView object. |
EndInit() |
Завершает инициализацию DataView, используемого в форме или другим компонентом.Ends the initialization of a DataView that is used on a form or used by another component. Инициализация происходит во время выполнения.The initialization occurs at runtime. |
Equals(DataView) |
Определяет, считаются ли равными указанные экземпляры DataView.Determines whether the specified DataView instances are considered equal. |
Equals(Object) |
Определяет, равен ли указанный объект текущему объекту.Determines whether the specified object is equal to the current object. (Унаследовано от Object) |
Find(Object) |
Находит строку в DataView по указанному значению ключа сортировки.Finds a row in the DataView by the specified sort key value. |
Find(Object[]) |
Находит строку в DataView по указанным значениям ключа сортировки.Finds a row in the DataView by the specified sort key values. |
FindRows(Object) |
Возвращает массив объектов DataRowView, столбцы которых соответствуют указанному значению ключа сортировки.Returns an array of DataRowView objects whose columns match the specified sort key value. |
FindRows(Object[]) |
Возвращает массив объектов DataRowView, столбцы которых соответствуют указанному значению ключа сортировки.Returns an array of DataRowView objects whose columns match the specified sort key value. |
GetEnumerator() |
Возвращает перечислитель для данной коллекции DataView.Gets an enumerator for this DataView. |
GetHashCode() |
Служит хэш-функцией по умолчанию.Serves as the default hash function. (Унаследовано от Object) |
GetService(Type) |
Возвращает средство реализации объекта IServiceProvider.Gets the implementer of the IServiceProvider. (Унаследовано от MarshalByValueComponent) |
GetType() |
Возвращает объект Type для текущего экземпляра.Gets the Type of the current instance. (Унаследовано от Object) |
IndexListChanged(Object, ListChangedEventArgs) |
Происходит после успешного изменения DataView.Occurs after a DataView has been changed successfully. |
MemberwiseClone() |
Создает неполную копию текущего объекта Object.Creates a shallow copy of the current Object. (Унаследовано от Object) |
OnListChanged(ListChangedEventArgs) |
Вызывает событие ListChanged.Raises the ListChanged event. |
Open() | |
Reset() |
Зарезервировано только для внутреннего использования.Reserved for internal use only. |
ToString() |
Возвращает объект String, содержащий имя Component, если оно есть.Returns a String containing the name of the Component, if any. Этот метод не следует переопределять.This method should not be overridden. (Унаследовано от MarshalByValueComponent) |
ToTable() |
Создает и возвращает новый объект DataTable на основе строк в существующем объекте DataView.Creates and returns a new DataTable based on rows in an existing DataView. |
ToTable(Boolean, String[]) |
Создает и возвращает новый объект DataTable на основе строк в существующем объекте DataView.Creates and returns a new DataTable based on rows in an existing DataView. |
ToTable(String) |
Создает и возвращает новый объект DataTable на основе строк в существующем объекте DataView.Creates and returns a new DataTable based on rows in an existing DataView. |
ToTable(String, Boolean, String[]) |
Создает и возвращает новый объект DataTable на основе строк в существующем объекте DataView.Creates and returns a new DataTable based on rows in an existing DataView. |
UpdateIndex() |
Зарезервировано только для внутреннего использования.Reserved for internal use only. |
UpdateIndex(Boolean) |
Зарезервировано только для внутреннего использования.Reserved for internal use only. |
События
Disposed |
Добавляет обработчик события для ожидания события Disposed в компоненте.Adds an event handler to listen to the Disposed event on the component. (Унаследовано от MarshalByValueComponent) |
Initialized |
Происходит при завершении инициализации DataView.Occurs when initialization of the DataView is completed. |
ListChanged |
Происходит при изменении списка, управляемого объектом DataView.Occurs when the list managed by the DataView changes. |
Явные реализации интерфейса
IBindingList.AddIndex(PropertyDescriptor) |
Описание этого члена см. в разделе AddIndex(PropertyDescriptor).For a description of this member, see AddIndex(PropertyDescriptor). |
IBindingList.AddNew() |
Описание этого члена см. в разделе AddNew().For a description of this member, see AddNew(). |
IBindingList.AllowEdit |
Описание этого члена см. в разделе AllowEdit.For a description of this member, see AllowEdit. |
IBindingList.AllowNew |
Описание этого члена см. в разделе AllowNew.For a description of this member, see AllowNew. |
IBindingList.AllowRemove |
Описание этого члена см. в разделе AllowRemove.For a description of this member, see AllowRemove. |
IBindingList.ApplySort(PropertyDescriptor, ListSortDirection) |
Описание этого члена см. в разделе ApplySort(PropertyDescriptor, ListSortDirection).For a description of this member, see ApplySort(PropertyDescriptor, ListSortDirection). |
IBindingList.Find(PropertyDescriptor, Object) |
Описание этого члена см. в разделе Find(PropertyDescriptor, Object).For a description of this member, see Find(PropertyDescriptor, Object). |
IBindingList.IsSorted |
Описание этого члена см. в разделе IsSorted.For a description of this member, see IsSorted. |
IBindingList.RemoveIndex(PropertyDescriptor) |
Описание этого члена см. в разделе RemoveIndex(PropertyDescriptor).For a description of this member, see RemoveIndex(PropertyDescriptor). |
IBindingList.RemoveSort() |
Описание этого члена см. в разделе RemoveSort().For a description of this member, see RemoveSort(). |
IBindingList.SortDirection |
Описание этого члена см. в разделе SortDirection.For a description of this member, see SortDirection. |
IBindingList.SortProperty |
Описание этого члена см. в разделе SortProperty.For a description of this member, see SortProperty. |
IBindingList.SupportsChangeNotification |
Описание этого члена см. в разделе SupportsChangeNotification.For a description of this member, see SupportsChangeNotification. |
IBindingList.SupportsSearching |
Описание этого члена см. в разделе SupportsSearching.For a description of this member, see SupportsSearching. |
IBindingList.SupportsSorting |
Описание этого члена см. в разделе SupportsSorting.For a description of this member, see SupportsSorting. |
IBindingListView.ApplySort(ListSortDescriptionCollection) |
Описание этого члена см. в разделе ApplySort(ListSortDescriptionCollection).For a description of this member, see ApplySort(ListSortDescriptionCollection). |
IBindingListView.Filter |
Описание этого члена см. в разделе Filter.For a description of this member, see Filter. |
IBindingListView.RemoveFilter() |
Описание этого члена см. в разделе RemoveFilter().For a description of this member, see RemoveFilter(). |
IBindingListView.SortDescriptions |
Описание этого члена см. в разделе SortDescriptions.For a description of this member, see SortDescriptions. |
IBindingListView.SupportsAdvancedSorting |
Описание этого члена см. в разделе SupportsAdvancedSorting.For a description of this member, see SupportsAdvancedSorting. |
IBindingListView.SupportsFiltering |
Описание этого члена см. в разделе SupportsFiltering.For a description of this member, see SupportsFiltering. |
ICollection.IsSynchronized |
Описание этого члена см. в разделе IsSynchronized.For a description of this member, see IsSynchronized. |
ICollection.SyncRoot |
Описание этого члена см. в разделе SyncRoot.For a description of this member, see SyncRoot. |
IList.Add(Object) |
Описание этого члена см. в разделе Add(Object).For a description of this member, see Add(Object). |
IList.Clear() |
Описание этого члена см. в разделе Clear().For a description of this member, see Clear(). |
IList.Contains(Object) |
Описание этого члена см. в разделе Contains(Object).For a description of this member, see Contains(Object). |
IList.IndexOf(Object) |
Описание этого члена см. в разделе IndexOf(Object).For a description of this member, see IndexOf(Object). |
IList.Insert(Int32, Object) |
Описание этого члена см. в разделе Insert(Int32, Object).For a description of this member, see Insert(Int32, Object). |
IList.IsFixedSize |
Описание этого члена см. в разделе IsFixedSize.For a description of this member, see IsFixedSize. |
IList.IsReadOnly |
Описание этого члена см. в разделе IsReadOnly.For a description of this member, see IsReadOnly. |
IList.Item[Int32] |
Описание этого члена см. в разделе Item[Int32].For a description of this member, see Item[Int32]. |
IList.Remove(Object) |
Описание этого члена см. в разделе Remove(Object).For a description of this member, see Remove(Object). |
IList.RemoveAt(Int32) |
Описание этого члена см. в разделе RemoveAt(Int32).For a description of this member, see RemoveAt(Int32). |
ITypedList.GetItemProperties(PropertyDescriptor[]) |
Описание этого члена см. в разделе GetItemProperties(PropertyDescriptor[]).For a description of this member, see GetItemProperties(PropertyDescriptor[]). |
ITypedList.GetListName(PropertyDescriptor[]) |
Описание этого члена см. в разделе GetListName(PropertyDescriptor[]).For a description of this member, see GetListName(PropertyDescriptor[]). |
Методы расширения
Cast<TResult>(IEnumerable) |
Приводит элементы объекта IEnumerable к заданному типу.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Выполняет фильтрацию элементов объекта IEnumerable по заданному типу.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Позволяет осуществлять параллельный запрос.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Преобразовывает коллекцию IEnumerable в объект IQueryable.Converts an IEnumerable to an IQueryable. |
Применяется к
Потокобезопасность
Этот тип является надежным для многопоточных операций чтения.This type is safe for multithreaded read operations. Необходимо синхронизировать любые операции записи.You must synchronize any write operations.