Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IList<TValue> Interface

Defines the interface for an STL/CLR list object.

Namespace:  Microsoft.VisualC.StlClr
Assembly:  Microsoft.VisualC.STLCLR (in Microsoft.VisualC.STLCLR.dll)
public interface IList<TValue> : IBidirectionalContainer<TValue>, 
	ICloneable, ICollection, IEnumerable

Type Parameters

TValue

The type of a list element.

The IList<TValue> type exposes the following members.

  NameDescription
Public propertyback_itemAccesses the last element of the container.
Public propertyCountGets the number of elements contained in the ICollection. (Inherited from ICollection.)
Public propertyfront_itemAccesses the first element of the container.
Public propertyIsSynchronizedGets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from ICollection.)
Public propertySyncRootGets an object that can be used to synchronize access to the ICollection. (Inherited from ICollection.)
Top
  NameDescription
Public methodassign(IEnumerable)Replaces the controlled sequence with the sequence that is designated by the given enumerator.
Public methodassign(IInputIterator<TValue>, IInputIterator<TValue>)Replaces the controlled sequence with the sequence [_First, _Last).
Public methodassign(Int32, TValue)Replaces the controlled sequence with the specified number of the given element.
Public methodbackAccesses the last element of the container.
Public methodbeginDesignates the beginning of the controlled sequence.
Public methodclearRemoves all elements from the container.
Public methodCloneCreates a new object that is a copy of the current instance. (Inherited from ICloneable.)
Public methodCopyToCopies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection.)
Public methodemptyTests whether the container has no elements.
Public methodendDesignates the end of the controlled sequence.
Public methoderase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)Removes the single element of the controlled sequence pointed to by the given iterator.
Public methoderase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)Removes the elements of the controlled sequence in the range [_First_iter, _Last_iter).
Public methodfrontAccesses the first element of the container.
Public methodget_generationGets the current change generation of the underlying container. (Inherited from IBidirectionalContainer<TValue>.)
Public methodGetEnumeratorReturns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public methodinsert(ContainerBidirectionalIterator<TValue>, IEnumerable)Inserts the elements of the specified enumerator into the container.
Public methodinsert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue)Inserts an element of the given value into the container.
Public methodinsert(ContainerBidirectionalIterator<TValue>, IInputIterator<TValue>, IInputIterator<TValue>)Inserts the sequence [_First, _Last) into the container.
Public methodinsert(ContainerBidirectionalIterator<TValue>, Int32, TValue)Inserts the specified number of elements of the given value into the container.
Public methodmergeMerges two ordered controlled sequences.
Public methodpop_backRemoves the last element from the container.
Public methodpop_frontRemoves the first element from the container.
Public methodpush_backAdds a new element to the end of the container.
Public methodpush_frontAdds a new element to the beginning of the container.
Public methodrbeginDesignates the beginning of the reversed controlled sequence.
Public methodremoveRemoves an element that has a specified value from the container.
Public methodremove_ifRemoves elements from the container that pass a specified test.
Public methodrendDesignates the end of the reversed controlled sequence.
Public methodresize(Int32)Changes the number of elements in the container to the specified size.
Public methodresize(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.
Public methodreverseReverses the elements of the controlled sequence.
Public methodsizeCounts the number of elements in the container.
Public methodsortOrders the controlled sequence.
Public methodsplice(ContainerBidirectionalIterator<TValue>, IList<TValue>)Inserts the given sequence into the container before the specified position.
Public methodsplice(ContainerBidirectionalIterator<TValue>, IList<TValue>, ContainerBidirectionalIterator<TValue>)Removes the element from the given container pointed to by _First and inserts it before the element in the controlled sequence pointed to by _Where.
Public methodsplice(ContainerBidirectionalIterator<TValue>, IList<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)Removes the range of elements [_First, _Last) from the given container and inserts it before the element in the controlled sequence pointed to by _Where.
Public methodswapSwaps the contents of two containers.
Public methoduniqueRemoves adjacent elements that pass a specified test.
Top
  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

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 __unnamed0 placeholder represents the unnamed parameter.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.