ListSortDescriptionCollection 类

定义

表示 ListSortDescription 对象集合。

public ref class ListSortDescriptionCollection : System::Collections::IList
public class ListSortDescriptionCollection : System.Collections.IList
type ListSortDescriptionCollection = class
    interface ICollection
    interface IEnumerable
    interface IList
type ListSortDescriptionCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public Class ListSortDescriptionCollection
Implements IList
继承
ListSortDescriptionCollection
实现

注解

ListSortDescriptionCollection 类由 IBindingListView 接口使用。

构造 ListSortDescriptionCollection 为只读一次。

构造函数

ListSortDescriptionCollection()

初始化 ListSortDescriptionCollection 类的新实例。

ListSortDescriptionCollection(ListSortDescription[])

ListSortDescriptionCollection 对象的指定数组初始化 ListSortDescription 类的新实例。

属性

Count

获取集合中的项数。

Item[Int32]

获取或设置指定的 ListSortDescription

方法

Contains(Object)

确定 ListSortDescriptionCollection 是否包含特定值。

CopyTo(Array, Int32)

从指定目标数组索引处开始,将集合中的内容复制到指定数组中。

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
IndexOf(Object)

返回集合中指定项的索引。

MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

显式接口实现

ICollection.IsSynchronized

获取一个值,用于指示对集合的访问是否是线程安全的。

ICollection.SyncRoot

获取可用于同步对集合的访问的当前实例。

IEnumerable.GetEnumerator()

获取可用于循环访问该集合的 IEnumerator

IList.Add(Object)

向集合中添加一项。

IList.Clear()

从集合中移除所有项。

IList.Insert(Int32, Object)

将某个项插入到集合中的指定索引处。

IList.IsFixedSize

获取一个值,该值指示集合是否具有固定大小。

IList.IsReadOnly

获取一个值,该值指示集合是否为只读。

IList.Item[Int32]

获取指定的 ListSortDescription

IList.Remove(Object)

从集合中移除某项的第一个匹配项。

IList.RemoveAt(Int32)

移除集合中指定索引处的项。

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

适用于