This topic has not yet been rated - Rate this topic

BingMapsTask Class

Windows Phone

March 22, 2012

Allows an application to launch the Bing Maps application centered at the location specified with the Center property or at the user’s current location. If SearchTerm is set, locations matching the search term are tagged on the map.

System.Object
  Microsoft.Phone.Tasks.BingMapsTask

Namespace:  Microsoft.Phone.Tasks
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class BingMapsTask
<BingMapsTask .../>

The BingMapsTask type exposes the following members.

  Name Description
Public method BingMapsTask Initializes a new instance of the BingMapsTask class.
Top
  Name Description
Public property Center Gets or sets the location that will be used as the center point for the map.
Public property SearchTerm Gets or sets the search term that is used to find and tag locations on the map.
Public property ZoomLevel Gets or sets the initial zoom level of the map.
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Show Shows the Bing Maps application centered at the location specified with the Center property or at the user’s current location. If SearchTerm is set, locations matching the search term are tagged on the map.
Public method ToString (Inherited from Object.)
Top

If you are developing your application to target 256-MB devices, consider using a BingMapsTask instead of a Map control. Memory allocated for a BingMapsTask does not count towards the total memory usage of your application. This helps minimize the memory impact of your application, which is of particular importance when running on a 256-MB device. For more information, see Developing for 256-MB Devices and How to: Use the Bing Maps Task for Windows Phone

Windows Phone OS

Supported in: 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)