Share via


Name property (PlaceCategory)

Returns the name of the PlaceCategory object. PlaceCategory names are localized in MapPoint Europe products. Read-only String.

Applies to

Objects:  PlaceCategory

Syntax

object.Name

Parameters

Part Description
object Required. An expression that returns a PlaceCategory object.

Example

    Sub PlaceCategoryName()

  Dim objApp As New MapPoint.Application   Dim objLoc As MapPoint.Location
  'Set up application and get Location object   objApp.Visible = True   objApp.UserControl = True   Set objLoc = objApp.ActiveMap.FindResults("Washington Monument")(1)
  'Get the name of the Place Category associated with this location   MsgBox "Place Category name: " + objLoc.PlaceCategory.Name
  End Sub

Note  This sample code is specific for use in MapPoint North America; it is for illustration purposes only.