BindingSource.IBindingList.AddIndex(PropertyDescriptor) 方法

定義

PropertyDescriptor 加入用來搜尋的索引中。Adds the PropertyDescriptor to the indexes used for searching.

 virtual void System.ComponentModel.IBindingList.AddIndex(System::ComponentModel::PropertyDescriptor ^ property) = System::ComponentModel::IBindingList::AddIndex;
void IBindingList.AddIndex (System.ComponentModel.PropertyDescriptor property);
abstract member System.ComponentModel.IBindingList.AddIndex : System.ComponentModel.PropertyDescriptor -> unit
override this.System.ComponentModel.IBindingList.AddIndex : System.ComponentModel.PropertyDescriptor -> unit
Sub AddIndex (property As PropertyDescriptor) Implements IBindingList.AddIndex

參數

property
PropertyDescriptor

要加入至用來搜尋之索引的 PropertyDescriptorThe PropertyDescriptor to add to the indexes used for searching.

實作

例外狀況

基礎清單不是 IBindingListThe underlying list is not an IBindingList.

備註

如果基礎清單是型別 IBindingList ,這個方法會將加入 PropertyDescriptor 至索引,否則呼叫這個方法將會擲回 NotSupportedExceptionIf the underlying list is an IBindingList type, this method will add the PropertyDescriptor to the indexes; otherwise, calling this method will throw a NotSupportedException.

適用於