ListSortDescriptionCollection 类

定义

表示 ListSortDescription 对象集合。Represents a collection of ListSortDescription objects.

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

注解

ListSortDescriptionCollection 类由 IBindingListView 接口使用。The ListSortDescriptionCollection class is used by the IBindingListView interface.

构造后,ListSortDescriptionCollection 是只读的。The ListSortDescriptionCollection is read-only once constructed.

构造函数

ListSortDescriptionCollection()

初始化 ListSortDescriptionCollection 类的新实例。Initializes a new instance of the ListSortDescriptionCollection class.

ListSortDescriptionCollection(ListSortDescription[])

ListSortDescriptionCollection 对象的指定数组初始化 ListSortDescription 类的新实例。Initializes a new instance of the ListSortDescriptionCollection class with the specified array of ListSortDescription objects.

属性

Count

获取集合中的项数。Gets the number of items in the collection.

Item[Int32]

获取或设置指定的 ListSortDescriptionGets or sets the specified ListSortDescription.

方法

Contains(Object)

确定 ListSortDescriptionCollection 是否包含特定值。Determines if the ListSortDescriptionCollection contains a specific value.

CopyTo(Array, Int32)

从指定目标数组索引处开始,将集合中的内容复制到指定数组中。Copies the contents of the collection to the specified array, starting at the specified destination array index.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IndexOf(Object)

返回集合中指定项的索引。Returns the index of the specified item in the collection.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

ICollection.IsSynchronized

获取一个值,用于指示对集合的访问是否是线程安全的。Gets a value indicating whether access to the collection is thread safe.

ICollection.SyncRoot

获取可用于同步对集合的访问的当前实例。Gets the current instance that can be used to synchronize access to the collection.

IEnumerable.GetEnumerator()

获取可用于循环访问该集合的 IEnumeratorGets a IEnumerator that can be used to iterate through the collection.

IList.Add(Object)

向集合中添加一项。Adds an item to the collection.

IList.Clear()

从集合中移除所有项。Removes all items from the collection.

IList.Insert(Int32, Object)

将某个项插入到集合中的指定索引处。Inserts an item into the collection at a specified index.

IList.IsFixedSize

获取一个值,该值指示集合是否具有固定大小。Gets a value indicating whether the collection has a fixed size.

IList.IsReadOnly

获取一个值,该值指示集合是否是只读的。Gets a value indicating whether the collection is read-only.

IList.Item[Int32]

获取指定的 ListSortDescriptionGets the specified ListSortDescription.

IList.Remove(Object)

从集合中移除某项的第一个匹配项。Removes the first occurrence of an item from the collection.

IList.RemoveAt(Int32)

移除集合中指定索引处的项。Removes an item from the collection at a specified index.

扩展方法

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 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于