-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Interop.IBindableVectorView.IndexOf(System.Object,System.UInt32@) |
winrt method |
Returns the index of a specified item in the vector.
The item to find in the vector.
The zero-based index of the item if found. 0 is returned if the item is not found, so be sure to check the return value.
true if the item is found; false if the item is not found.
This interface supports the creation of data bindable collections in C++. When programming with .NET, you should use ObservableCollection(Of T) or implement IList and INotifyCollectionChanged.