IList<TValue> Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the interface for an STL/CLR list object.
generic <typename TValue>
public interface class IList : ICloneable, Microsoft::VisualC::StlClr::Generic::IBidirectionalContainer<TValue>, System::Collections::ICollection
public interface IList<TValue> : ICloneable, Microsoft.VisualC.StlClr.Generic.IBidirectionalContainer<TValue>, System.Collections.ICollection
type IList<'Value> = interface
interface IBidirectionalContainer<'Value>
interface ICloneable
interface ICollection
interface IEnumerable
Public Interface IList(Of TValue)
Implements IBidirectionalContainer(Of TValue), ICloneable, ICollection
Type Parameters
- TValue
The type of a list element.
- Implements
Remarks
Some methods, especially operators, declare a type for a parameter but do not specify a parameter name. Such a parameter is known as an unnamed parameter. In the documentation for these methods, the A_0 placeholder represents the unnamed parameter.
Properties
back_item |
Accesses the last element of the container. |
Count |
Gets the number of elements contained in the ICollection. (Inherited from ICollection) |
front_item |
Accesses the first element of the container. |
IsSynchronized |
Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from ICollection) |
SyncRoot |
Gets an object that can be used to synchronize access to the ICollection. (Inherited from ICollection) |
Methods
assign(IEnumerable) |
Replaces the controlled sequence with the sequence that is designated by the given enumerator. |
assign(IInputIterator<TValue>, IInputIterator<TValue>) |
Replaces the controlled sequence with the sequence |
assign(Int32, TValue) |
Replaces the controlled sequence with the specified number of the given element. |
back() |
Accesses the last element of the container. |
begin(ContainerBidirectionalIterator<TValue>) |
Designates the beginning of the controlled sequence. |
clear() |
Removes all elements from the container. |
Clone() |
Creates a new object that is a copy of the current instance. (Inherited from ICloneable) |
CopyTo(Array, Int32) |
Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection) |
empty() |
Tests whether the container has no elements. |
end(ContainerBidirectionalIterator<TValue>) |
Designates the end of the controlled sequence. |
erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) |
Removes the elements of the controlled sequence in the range [_First_iter, _Last_iter). |
erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) |
Removes the single element of the controlled sequence pointed to by the given iterator. |
front() |
Accesses the first element of the container. |
get_generation() |
Gets the current change generation of the underlying container. (Inherited from IBidirectionalContainer<TValue>) |
GetEnumerator() |
Returns an enumerator that iterates through a collection. (Inherited from IEnumerable) |
insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) |
Inserts an element of the given value into the container. |
insert(ContainerBidirectionalIterator<TValue>, IEnumerable) |
Inserts the elements of the specified enumerator into the container. |
insert(ContainerBidirectionalIterator<TValue>, IInputIterator<TValue>, IInputIterator<TValue>) |
Inserts the sequence [ |
insert(ContainerBidirectionalIterator<TValue>, Int32, TValue) |
Inserts an element of the given value into the container. |
merge(IList<TValue>, BinaryDelegate<TValue,TValue,Boolean>) |
Merges two ordered controlled sequences. |
pop_back() |
Removes the last element from the container. |
pop_front() |
Removes the first element from the container. |
push_back(TValue) |
Adds a new element to the end of the container. |
push_front(TValue) |
Adds a new element to the beginning of the container. |
rbegin(ReverseBidirectionalIterator<TValue>) |
Designates the beginning of the reversed controlled sequence. |
remove_if(UnaryDelegate<TValue,Boolean>) |
Removes elements from the container that pass a specified test. |
remove(TValue) |
Removes an element that has a specified value from the container. |
rend(ReverseBidirectionalIterator<TValue>) |
Designates the end of the reversed controlled sequence. |
resize(Int32, TValue) |
Changes the number of elements in the container to the specified size. If the new size is larger than the old size, the given values will be appended to the container. |
resize(Int32) |
Changes the number of elements in the container to the specified size. |
reverse() |
Reverses the elements of the controlled sequence. |
size() |
Counts the number of elements in the container. |
sort(BinaryDelegate<TValue,TValue,Boolean>) |
Orders the controlled sequence. |
splice(ContainerBidirectionalIterator<TValue>, IList<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) |
Removes the range of elements [ |
splice(ContainerBidirectionalIterator<TValue>, IList<TValue>, ContainerBidirectionalIterator<TValue>) |
Removes the element from the given container pointed to by |
splice(ContainerBidirectionalIterator<TValue>, IList<TValue>) |
Inserts the given sequence into the container before the specified position. |
swap(IList<TValue>) |
Swaps the contents of two containers. |
unique(BinaryDelegate<TValue,TValue,Boolean>) |
Removes adjacent elements that pass a specified test. |
Extension Methods
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |