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


ILocatorWorkspace.AddLocatorStyle Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

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 _
)
[C#]
public void AddLocatorStyle (
    string Name,
    string Category,
    ILocatorStyle locatorStyle
);
[C++]
HRESULT AddLocatorStyle(
  BSTR Name,
  BSTR Category,
  ILocatorStyle* locatorStyle
);
[C++]

Parameters 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.

Description

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.

Remarks

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