CLGeocoder.GeocodePostalAddressAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GeocodePostalAddressAsync(CNPostalAddress) | |
GeocodePostalAddressAsync(CNPostalAddress, NSLocale) |
GeocodePostalAddressAsync(CNPostalAddress)
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]> GeocodePostalAddressAsync (Contacts.CNPostalAddress postalAddress);
abstract member GeocodePostalAddressAsync : Contacts.CNPostalAddress -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
override this.GeocodePostalAddressAsync : Contacts.CNPostalAddress -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
Parameters
- postalAddress
- CNPostalAddress
Returns
Task<CLPlacemark[]>
A task that represents the asynchronous GeocodePostalAddress operation. The value of the TResult parameter is a CoreLocation.CLGeocodeCompletionHandler.
- Attributes
Remarks
The GeocodePostalAddressAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.
To be added.
Applies to
GeocodePostalAddressAsync(CNPostalAddress, NSLocale)
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]> GeocodePostalAddressAsync (Contacts.CNPostalAddress postalAddress, Foundation.NSLocale locale);
abstract member GeocodePostalAddressAsync : Contacts.CNPostalAddress * Foundation.NSLocale -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
override this.GeocodePostalAddressAsync : Contacts.CNPostalAddress * Foundation.NSLocale -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
Parameters
- postalAddress
- CNPostalAddress
- locale
- NSLocale
Returns
Task<CLPlacemark[]>
- Attributes