CivicAddressResolver::ResolveAddress Method
Synchronously resolves a civic address from a location based on latitude and longitude. This call will block execution of the calling thread while the address is being resolved.
Assembly: System.Device (in System.Device.dll)
Parameters
- coordinate
- Type: System.Device.Location::GeoCoordinate
The GeoCoordinate containing the location to resolve to a civic address.
Return Value
Type: System.Device.Location::CivicAddressThe civic address that is resolved from the coordinate parameter. Unknown is returned if the address cannot be resolved.
Implements
ICivicAddressResolver::ResolveAddress(GeoCoordinate)| Exception | Condition |
|---|---|
| ArgumentNullException | coordinate is nullptr. |
| ArgumentException | coordinate does not contain a valid latitude and longitude. |
The ResolveAddressCompleted event is raised when the address resolve operation completes. The civic address that is resolved from the coordinate parameter is returned by the Address member of the ResolveAddressCompletedEventArgs object that is passed to the event handler.
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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.