IListContract<C>.GetItem(Int32) Method
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.
Returns the element at the specified index.
public:
C GetItem(int index);
public C GetItem (int index);
abstract member GetItem : int -> 'C
Public Function GetItem (index As Integer) As C
Parameters
- index
- Int32
The zero-based index of the element to get.
Returns
C
The element at the specified index.
Exceptions
Remarks
The GetItem method does not remove the element at the specified index. To remove an element from the IListContract<C>, use the RemoveAt method.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.