ListSortDescriptionCollection ListSortDescriptionCollection ListSortDescriptionCollection ListSortDescriptionCollection Class

定义

表示 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
继承
ListSortDescriptionCollectionListSortDescriptionCollectionListSortDescriptionCollectionListSortDescriptionCollection
实现

注解

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

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

构造函数

ListSortDescriptionCollection() ListSortDescriptionCollection() ListSortDescriptionCollection() ListSortDescriptionCollection()

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

ListSortDescriptionCollection(ListSortDescription[]) ListSortDescriptionCollection(ListSortDescription[]) ListSortDescriptionCollection(ListSortDescription[]) ListSortDescriptionCollection(ListSortDescription[])

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

属性

Count Count Count Count

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

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

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

方法

Contains(Object) Contains(Object) Contains(Object) Contains(Object)

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

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
IndexOf(Object) IndexOf(Object) IndexOf(Object) IndexOf(Object)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

显式界面实现

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

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

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

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

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

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

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

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

IList.Clear() IList.Clear() IList.Clear() IList.Clear()

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

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

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

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

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

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

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

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

获取指定的 ListSortDescriptionGets the specified ListSortDescription.

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

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

IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32)

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

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于