ComponentOne Xamarin.Android
AddAsync<T> Method


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

Parameters

collectionView
The collection view.
item
The item to be added.

Type Parameters

T
See Also

Reference

ICollectionViewEx Class
ICollectionViewEx Members