PlaceCategory property

Returns the PlaceCategory object for the specified location. Returns "Nothing" if the location does not fit into a place category. Read-only.

Applies to

Objects:  Location

Syntax

object.PlaceCategory

Parameters

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

Example

    Sub GetPlaceCategoryName()

  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.