ListSortDescriptionCollection Class

 

Represents a collection of ListSortDescription objects.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

System::Object
  System.ComponentModel::ListSortDescriptionCollection

[HostProtectionAttribute(SecurityAction::LinkDemand, SharedState = true)]
public ref class ListSortDescriptionCollection : IList, ICollection, 
	IEnumerable

NameDescription
System_CAPS_pubmethodListSortDescriptionCollection()

Initializes a new instance of the ListSortDescriptionCollection class.

System_CAPS_pubmethodListSortDescriptionCollection(array<ListSortDescription^>^)

Initializes a new instance of the ListSortDescriptionCollection class with the specified array of ListSortDescription objects.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of items in the collection.

System_CAPS_pubpropertyItem[Int32]

Gets or sets the specified ListSortDescription.

NameDescription
System_CAPS_pubmethodContains(Object^)

Determines if the ListSortDescriptionCollection contains a specific value.

System_CAPS_pubmethodCopyTo(Array^, Int32)

Copies the contents of the collection to the specified array, starting at the specified destination array index.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIndexOf(Object^)

Returns the index of the specified item in the collection.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable::GetEnumerator()

Gets a System.Collections::IEnumerator that can be used to iterate through the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::Add(Object^)

Adds an item to the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::Clear()

Removes all items from the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::Insert(Int32, Object^)

Inserts an item into the collection at a specified index.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::Remove(Object^)

Removes the first occurrence of an item from the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::RemoveAt(Int32)

Removes an item from the collection at a specified index.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection::IsSynchronized

Gets a value indicating whether access to the collection is thread safe.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection::SyncRoot

Gets the current instance that can be used to synchronize access to the collection.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList::IsFixedSize

Gets a value indicating whether the collection has a fixed size.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList::IsReadOnly

Gets a value indicating whether the collection is read-only.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList::Item[Int32]

Gets the specified ListSortDescription.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

The ListSortDescriptionCollection class is used by the IBindingListView interface.

The ListSortDescriptionCollection is read-only once constructed.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: