The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ICivicAddressResolver.ResolveAddressCompleted Event
.NET Framework (current version)
Occurs when an asynchronous request using ResolveAddressAsync to resolve a latitude/longitude to a civic address is complete.
Assembly: System.Device (in System.Device.dll)
The following example demonstrates how to call ResolveAddressAsync and handle the ResolveAddressCompleted event.
Public Sub ResolveCivicAddressAsync() Dim watcher As GeoCoordinateWatcher watcher = New System.Device.Location.GeoCoordinateWatcher(GeoPositionAccuracy.High) Dim started As Boolean = False watcher.MovementThreshold = 1.0 'set to one meter started = watcher.TryStart(False, TimeSpan.FromMilliseconds(1000)) If started Then Dim resolver As CivicAddressResolver = New CivicAddressResolver() AddHandler resolver.ResolveAddressCompleted, AddressOf resolver_ResolveAddressCompleted If Not watcher.Position.Location.IsUnknown Then resolver.ResolveAddressAsync(watcher.Position.Location) End If End If watcher.Start() End Sub Sub resolver_ResolveAddressCompleted(ByVal sender As Object, ByVal e As ResolveAddressCompletedEventArgs) If Not e.Address.IsUnknown Then Console.WriteLine("Country: {0}, Zip: {1}", e.Address.CountryRegion, e.Address.PostalCode) Else Console.WriteLine("Unknown address.") End If End Sub
.NET Framework
Available since 4.0
Windows Phone Silverlight
Available since 7.0
Available since 4.0
Windows Phone Silverlight
Available since 7.0
Show: