ArcGIS Developer Help  (GeoDatabase)    

ILocatorWorkspace.AddLocatorStyle Method

Adds a locator style.

[Visual Basic 6.0]
Sub AddLocatorStyle(
    ByVal Name As String, _
    ByVal Category As String, _
    ByVal locatorStyle As ILocatorStyle _
)
[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
);
[Java]
public void addLocatorStyle (
    String Name,
    String Category,
    ILocatorStyle locatorStyle
)
throws
    IOException,
    AutomationException
[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.

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

Example

Copy LocatorStyle Example

 


Feedback Send feedback on this page