DataViewSettingCollection Класс
Определение
Содержит доступную только для чтения коллекцию объектов DataViewSetting для каждого объекта DataTable в DataSet.Contains a read-only collection of DataViewSetting objects for each DataTable in a DataSet.
public ref class DataViewSettingCollection : System::Collections::ICollection
public class DataViewSettingCollection : System.Collections.ICollection
[System.Serializable]
public class DataViewSettingCollection : System.Collections.ICollection
type DataViewSettingCollection = class
interface ICollection
interface IEnumerable
[<System.Serializable>]
type DataViewSettingCollection = class
interface ICollection
interface IEnumerable
Public Class DataViewSettingCollection
Implements ICollection
- Наследование
-
DataViewSettingCollection
- Атрибуты
- Реализации
Комментарии
Пользователь не может добавлять или удалять объект DataViewSetting из коллекции, но может изменять свойства DataViewSetting соответствующего объекта DataTable .A user cannot add or remove a DataViewSetting from the collection, but can change the properties of the DataViewSetting corresponding to a particular DataTable. При добавлении или удалении DataTable из набора данных добавляется или удаляется соответствующий объект DataViewSetting из коллекции.Adding or removing a DataTable from the DataSet adds or removes the corresponding DataViewSetting from the collection.
Свойства
Count |
Возвращает количество объектов DataViewSetting в коллекции DataViewSettingCollection.Gets the number of DataViewSetting objects in the DataViewSettingCollection. |
IsReadOnly |
Получает значение, указывающее, доступен ли объект DataViewSettingCollection только для чтения.Gets a value that indicates whether the DataViewSettingCollection is read-only. |
IsSynchronized |
Получает значение, определяющее, является ли доступ к коллекции DataViewSettingCollection синхронизированным (потокобезопасным).Gets a value that indicates whether access to the DataViewSettingCollection is synchronized (thread-safe). |
Item[DataTable] |
Возвращает объекты DataViewSetting указанного класса DataTable из коллекции.Gets the DataViewSetting objects of the specified DataTable from the collection. |
Item[Int32] |
Возвращает объекты DataViewSetting класса DataTable по указанному индексу.Gets the DataViewSetting objects of the DataTable specified by its index. |
Item[String] |
Возвращает объект DataViewSetting класса DataTable, заданный по его имени.Gets the DataViewSetting of the DataTable specified by its name. |
SyncRoot |
Получает объект, с помощью которого можно синхронизировать доступ к коллекции DataViewSettingCollection.Gets an object that can be used to synchronize access to the DataViewSettingCollection. |
Методы
CopyTo(Array, Int32) |
Копирует объекты коллекции в одномерный экземпляр класса Array, начиная с указанного индекса.Copies the collection objects to a one-dimensional Array instance starting at the specified index. |
CopyTo(DataViewSetting[], Int32) |
Копирует объекты коллекции в одномерный экземпляр класса Array, начиная с указанного индекса.Copies the collection objects to a one-dimensional Array instance starting at the specified index. |
Equals(Object) |
Определяет, равен ли указанный объект текущему объекту.Determines whether the specified object is equal to the current object. (Унаследовано от Object) |
GetEnumerator() |
Возвращает объект IEnumerator для коллекции.Gets an IEnumerator for the collection. |
GetHashCode() |
Служит хэш-функцией по умолчанию.Serves as the default hash function. (Унаследовано от Object) |
GetType() |
Возвращает объект Type для текущего экземпляра.Gets the Type of the current instance. (Унаследовано от Object) |
MemberwiseClone() |
Создает неполную копию текущего объекта Object.Creates a shallow copy of the current Object. (Унаследовано от Object) |
ToString() |
Возвращает строку, представляющую текущий объект.Returns a string that represents the current object. (Унаследовано от Object) |
Методы расширения
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.