IListContract<T>.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 item at the specified index of an IListContract<T> collection.
public:
T GetItem(int index);
public T GetItem (int index);
abstract member GetItem : int -> 'T
Public Function GetItem (index As Integer) As T
Parameters
- index
- Int32
The zero-based index of the item to get.
Returns
T
The item at the specified index.
Exceptions
Remarks
The GetItem method does not remove the item at the specified index. To remove an item from the IListContract<T> collection, 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.