BindingList<T>.SortPropertyCore 属性

定义

如果在派生类中实现了排序,则获取用于对列表排序的属性说明符;否则返回 nullGets the property descriptor that is used for sorting the list if sorting is implemented in a derived class; otherwise, returns null.

protected:
 virtual property System::ComponentModel::PropertyDescriptor ^ SortPropertyCore { System::ComponentModel::PropertyDescriptor ^ get(); };
protected virtual System.ComponentModel.PropertyDescriptor SortPropertyCore { get; }
member this.SortPropertyCore : System.ComponentModel.PropertyDescriptor
Protected Overridable ReadOnly Property SortPropertyCore As PropertyDescriptor

属性值

用于对列表排序的 PropertyDescriptorThe PropertyDescriptor used for sorting the list.

注解

默认情况下,SortPropertyCore 返回 null,因为 BindingList<T> 类不提供排序的基实现。SortPropertyCore returns null by default because the BindingList<T> class does not provide a base implementation of sorting. 若要启用排序,请从 BindingList<T> 中派生一个类,并执行以下操作:To enable sorting, derive a class from BindingList<T> and:

适用于