This document is archived and information here might be outdated.  Recommended version.

ILocatorWorkspace.AddLocatorStyle Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IL > ILocatorWorkspace Interface > ILocatorWorkspace.AddLocatorStyle Method
ArcGIS Developer Help

ILocatorWorkspace.AddLocatorStyle Method

Adds a locator style.

[Visual Basic .NET]
Public Sub AddLocatorStyle ( _
    ByVal Name As String, _
    ByVal Category As String, _
    ByVal locatorStyle As ILocatorStyle _
public void AddLocatorStyle (
    string Name,
    string Category,
    ILocatorStyle locatorStyle
HRESULT AddLocatorStyle(
  BSTR Name,
  BSTR Category,
  ILocatorStyle* locatorStyle
Name [in]

Name is a parameter of type BSTR Category [in]
Category is a parameter of type BSTR locatorStyle [in]
locatorStyle is a parameter of type ILocatorStyle*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


The AddLocatorStyle method adds the specified locator style to the locator workspace.

Note: This method is deprecated in versions of ArcGIS later than 9.3.1.


In general, you will only use this method if you have created your own custom locator style and want to copy it from one locator workspace to another.

The Name parameter specifies the name for the new locator style.

The Category parameter is used to specify the category of the new locator style. Address locator styles provided with ArcGIS all have a category of "Address".

The LocatorStyle parameter is a reference to the locator style to add to the locator workspace.

See Also

ILocatorWorkspace Interface | ILocatorWorkspace.AddLocatorStyle Method | ILocatorWorkspace.AddLocatorStyle Method