Xceed.Silverlight.ListBox.v2.0 Assembly > Xceed.Silverlight.ListBox Namespace > ListBox Class : EndGetSelectedItems Method |
Public Function EndGetSelectedItems( _ ByVal asyncResult As IAsyncResult _ ) As IEnumerable(Of Object)
Dim instance As ListBox Dim asyncResult As IAsyncResult Dim value As IEnumerable(Of Object) value = instance.EndGetSelectedItems(asyncResult)
public IEnumerable<object> EndGetSelectedItems( IAsyncResult asyncResult )
Private Sub GetSelectedItems() Dim result As IAsyncResult = Me.sllbListBox.BeginGetSelectedItems( New AsyncCallback( AddressOf Me.ProcessSelectedItems ), Nothing ) If( result.IsCompleted ) Then Dim selectedItems As IEnumerable( Of Object ) = Me.sllbListBox.EndGetSelectedItems( result ) End If End Sub Private Sub ProcessSelectedItems( ByVal result As IAsyncResult ) If( result.CompletedSynchronously ) Then Return End If Dim selectedItems As IEnumerable( Of Object ) = Me.sllbListBox.EndGetSelectedItems( result ) End Sub
private void GetSelectedItems() { IAsyncResult result = this.sllbListBox.BeginGetSelectedItems( new AsyncCallback( this.ProcessSelectedItems ), null ); if( result.IsCompleted ) IEnumerable<object> selectedItems = this.sllbListBox.EndGetSelectedItems( result ); } private void ProcessSelectedItems( IAsyncResult result ) { if( result.CompletedSynchronously ) return; IEnumerable<object> selectedItems = this.sllbListBox.EndGetSelectedItems( result ); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2