Share via


AddPushpinSet method

Adds a new Pushpin set of a given name. Returns an error if a DataSet with that name already exists. Returns the newly created DataSet object.

Applies to

Collections:  DataSets

Syntax

object.AddPushpinSet(Name)

Parameters

Part Description
object Required. An expression that returns a DataSets collection.
Name Required String. Name of the Pushpin set.

Example

    Sub AddPushpinSetToTheMap()

  Dim objApp As New MapPoint.Application   objApp.Visible = True   objApp.UserControl = True
  'Create a new Pushpin set   objApp.ActiveMap.DataSets.AddPushpinSet "NewSet"   MsgBox objApp.ActiveMap.DataSets(1).Name
  End Sub