Share via


LocationCollection.Add Method

This documentation is no longer available on MSDN, however it is available as a CHM download.

Adds a Location to the location collection.

Namespace: Microsoft.Maps.MapControl
Assembly: Microsoft.Maps.MapControl.Common (in Microsoft.Maps.MapControl.Common.dll)

Usage

Syntax

'Declaration
<ScriptableMemberAttribute> _
Public Sub Add ( _
    loc As Location _
)
[ScriptableMemberAttribute] 
public void Add (
    Location loc
)
[ScriptableMemberAttribute] 
public:
void Add (
    Location^ loc
)
/** @attribute ScriptableMemberAttribute() */ 
public void Add (
    Location loc
)
ScriptableMemberAttribute 
public function Add (
    loc : Location
)

Parameters

  • loc
    The location to add.

Thread Safety

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

Platforms

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

See Also

Reference

LocationCollection Class
LocationCollection Members
Microsoft.Maps.MapControl Namespace