-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.ItemsSourceView.KeyFromIndex(System.Int32) |
winrt method |
Retrieves the unique identifier (key) for the item at the specified index.
The index of the item to get the key for.
The unique identifier (key) for the item at the specified index.
Check that the HasKeyIndexMapping property is true before calling this method. If the data source does not support unique IDs (key values), this method causes a NotImplementedException.
Use the Count property to make sure you are passing a valid index.