ComponentOne Xamarin.Android
ReplaceAsync<T> Method (ICollectionViewEx)


C1.CollectionView Assembly > C1.CollectionView Namespace > ICollectionViewEx Class : ReplaceAsync<T> Method
The collection view.
The index.
The item.
Replaces the item at the specified index by the specified item.
Syntax
'Declaration
 
<AsyncStateMachineAttribute(C1.CollectionView.ICollectionViewEx/d__57`1)> 
<ExtensionAttribute()> 
Public Shared Function ReplaceAsync(Of T As Class)( _ 
   ByVal collectionView As ICollectionView(Of T), _ 
   ByVal index As Integer, _ 
   ByVal item As T _ 
) As Task
'Usage
 
Dim collectionView As ICollectionView(Of T)
Dim index As Integer
Dim item As T
Dim value As Task
 
value = ICollectionViewEx.ReplaceAsync(Of T)(collectionView, index, item)
[AsyncStateMachine(C1.CollectionView.ICollectionViewEx/d__57`1)] 
[Extension()] 
public static Task ReplaceAsync<T>( 
   ICollectionView<T> collectionView, 
   int index, 
   T item 
) 
where T: class

Parameters

collectionView
The collection view.
index
The index.
item
The item.

Type Parameters

T
See Also

Reference

ICollectionViewEx Class
ICollectionViewEx Members