From C to Vb.net

Feb 21, 2014 at 1:44 PM
Hi all,
I'm trying to convert this code from c# to vb.net into a WP7.1 SDK.
   var criterion = CriterionFactory.CreateLocationSearchForAddress(this.postCode.Text);
   
   this.bingMapsService.SearchForLocationUsingAddress(criterion)
      .ObserveOnDispatcher()
      .Subscribe(result =>
              {
               this.address.Text = result.Locations[0].Address.Locality;
               this.address.Text += Environment.NewLine;
               this.address.Text += result.Locations[0].Address.PostalCode;
               this.address.Text += Environment.NewLine;
               this.address.Text += result.Locations[0].Address.AdminDistrict;
               this.address.Text += Environment.NewLine;
               this.address.Text += result.Locations[0].Address.CountryRegion;
              });
this is my translated code:
           Dim geoCoordinate = New GeoCoordinate(Convert.ToDouble(coord.Latitude), Convert.ToDouble(coord.Longitude))

            Dim criterion = CriterionFactory.CreateLocationSearchForPoint(geoCoordinate)

            bingMapsService.SearchForLocationUsingPoint(criterion).ObserveOnDispatcher().Subscribe(
                Function(result)
                    address.Text = result.Locations(0).Address.Locality
                    address.Text += Environment.NewLine
                    address.Text += result.Locations(0).Address.PostalCode
                    address.Text += Environment.NewLine
                    address.Text += result.Locations(0).Address.AdminDistrict
                    address.Text += Environment.NewLine
                    address.Text += result.Locations(0).Address.CountryRegion

                End Function)
I've got this error:
Error 2 'ObserveOnDispatcher' is not a member of 'System.IObservable(Of WP7Contrib.Services.BingMaps.Model.LocationSearchResult)'.

Can anyone suggest me a solution?
Many thanks to all!
Bye