DataViewManager 類別

定義

DataSet 中的每一個 DataTable 都包含預設的 DataViewSettingCollection

public ref class DataViewManager : System::ComponentModel::MarshalByValueComponent, System::Collections::IList, System::ComponentModel::IBindingList, System::ComponentModel::ITypedList
public ref class DataViewManager : System::ComponentModel::MarshalByValueComponent, System::ComponentModel::IBindingList, System::ComponentModel::ITypedList
public class DataViewManager : System.ComponentModel.MarshalByValueComponent, System.Collections.IList, System.ComponentModel.IBindingList, System.ComponentModel.ITypedList
public class DataViewManager : System.ComponentModel.MarshalByValueComponent, System.ComponentModel.IBindingList, System.ComponentModel.ITypedList
type DataViewManager = class
    inherit MarshalByValueComponent
    interface ICollection
    interface IEnumerable
    interface IList
    interface IBindingList
    interface ITypedList
type DataViewManager = class
    inherit MarshalByValueComponent
    interface IBindingList
    interface IList
    interface ICollection
    interface IEnumerable
    interface ITypedList
Public Class DataViewManager
Inherits MarshalByValueComponent
Implements IBindingList, IList, ITypedList
Public Class DataViewManager
Inherits MarshalByValueComponent
Implements IBindingList, ITypedList
繼承
實作

建構函式

DataViewManager()

初始化 DataViewManager 類別的新執行個體。

DataViewManager(DataSet)

為指定的 DataSet 初始化 DataViewManager 類別的新執行個體。

屬性

Container

取得元件的容器。

(繼承來源 MarshalByValueComponent)
DataSet

取得或設定與 DataSet 一起使用的 DataViewManager

DataViewSettingCollectionString

取得或設定用於程式碼保存的值。

DataViewSettings

為每個在 DataViewSettingCollection 中的 DataTable 取得 DataSet

DesignMode

取得值,表示元件目前是否處於設計模式。

(繼承來源 MarshalByValueComponent)
Events

取得附加在這個元件上的事件處理常式清單。

(繼承來源 MarshalByValueComponent)
Site

取得或設定元件的網站。

(繼承來源 MarshalByValueComponent)

方法

CreateDataView(DataTable)

為指定的 DataTable 建立 DataView

Dispose()

釋放 MarshalByValueComponent 所使用的所有資源。

(繼承來源 MarshalByValueComponent)
Dispose(Boolean)

釋放 MarshalByValueComponent 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。

(繼承來源 MarshalByValueComponent)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetService(Type)

取得 IServiceProvider 的實作器。

(繼承來源 MarshalByValueComponent)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
OnListChanged(ListChangedEventArgs)

引發 ListChanged 事件。

RelationCollectionChanged(Object, CollectionChangeEventArgs)

CollectionChanged 中加入或刪除 DataRelation 時,引發 DataRelationCollection 事件。

TableCollectionChanged(Object, CollectionChangeEventArgs)

CollectionChanged 中加入或刪除 DataTable 時,引發 DataTableCollection 事件。

ToString()

傳回任何包含 Component 名稱的 String。 不應覆寫此方法。

(繼承來源 MarshalByValueComponent)

事件

Disposed

加入事件處理常式來接聽元件上的 Disposed 事件。

(繼承來源 MarshalByValueComponent)
ListChanged

發生於在 DataView 中加入或刪除資料列之後。

明確介面實作

IBindingList.AddIndex(PropertyDescriptor)

PropertyDescriptor 加入用來搜尋的索引中。

IBindingList.AddNew()

如需這個成員的說明,請參閱 AddNew()

IBindingList.AllowEdit

如需這個成員的說明,請參閱 AllowEdit

IBindingList.AllowNew

如需這個成員的說明,請參閱 AllowNew

IBindingList.AllowRemove

如需這個成員的說明,請參閱 AllowRemove

IBindingList.ApplySort(PropertyDescriptor, ListSortDirection)

根據 PropertyDescriptorListSortDirection 來排序清單。

IBindingList.Find(PropertyDescriptor, Object)

傳回具有指定 PropertyDescriptor 的列索引。

IBindingList.IsSorted

如需這個成員的說明,請參閱 IsSorted

IBindingList.RemoveIndex(PropertyDescriptor)

從用來搜尋的索引中移除 PropertyDescriptor

IBindingList.RemoveSort()

移除任何使用 ApplySort(PropertyDescriptor, ListSortDirection) 的套用排序。

IBindingList.SortDirection

如需這個成員的說明,請參閱 SortDirection

IBindingList.SortProperty

如需這個成員的說明,請參閱 SortProperty

IBindingList.SupportsChangeNotification

如需這個成員的說明,請參閱 SupportsChangeNotification

IBindingList.SupportsSearching

如需這個成員的說明,請參閱 SupportsSearching

IBindingList.SupportsSorting

如需這個成員的說明,請參閱 SupportsSorting

ICollection.CopyTo(Array, Int32)

從特定的 ICollection 索引開始,將 Array 的項目複製到 Array

ICollection.Count

如需這個成員的說明,請參閱 Count

ICollection.IsSynchronized

如需這個成員的說明,請參閱 IsSynchronized

ICollection.SyncRoot

如需這個成員的說明,請參閱 SyncRoot

IEnumerable.GetEnumerator()

如需這個成員的說明,請參閱 GetEnumerator()

IList.Add(Object)

將項目加入至 IList

IList.Clear()

如需這個成員的說明,請參閱 Clear()

IList.Contains(Object)

判斷 IList 是否包含特定值。

IList.IndexOf(Object)

判斷 IList 中指定項目的索引。

IList.Insert(Int32, Object)

將項目插入位於指定索引的 IList

IList.IsFixedSize

如需這個成員的說明,請參閱 IsFixedSize

IList.IsReadOnly

如需這個成員的說明,請參閱 IsReadOnly

IList.Item[Int32]

在指定的索引位置上取得或設定項目。

IList.Remove(Object)

IList 移除特定物件之第一個符合的元素。

IList.RemoveAt(Int32)

移除在指定索引處的 IList 項目。

ITypedList.GetItemProperties(PropertyDescriptor[])

傳回代表繫結資料所用各項目屬性的 PropertyDescriptorCollection

ITypedList.GetListName(PropertyDescriptor[])

傳回清單的名稱。

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於

執行緒安全性

此類型適用于多執行緒讀取作業。 您必須同步處理任何寫入作業。

另請參閱