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

ILocatorWorkspace.RenameLocator 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.RenameLocator Method
ArcGIS Developer Help

ILocatorWorkspace.RenameLocator Method

Renames a locator.

[Visual Basic .NET]
Public Sub RenameLocator ( _
    ByVal oldName As String, _
    ByVal newName As String _
public void RenameLocator (
    string oldName,
    string newName
HRESULT RenameLocator(
  BSTR oldName,
  BSTR newName
oldName [in]

oldName is a parameter of type BSTR newName [in]
newName is a parameter of type BSTR

Product Availability

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


The oldName parameter is the current name of the locator or locator style that you want to rename. The newName parameter is the new name for the locator or locator style.

In ArcSDE workspaces, locator names are prefixed by the name of the ArcSDE user that owns the locator, as in "jack.My Locator".  When you call methods in ArcObjects that have parameters that specify locators in a ArcSDE workspace, you must specify the full name of the locator, including the user name. Failing to do so will result in an error.  You must fully-qualify the oldName parameter with a user name. Do not qualify the newName parameter with a user name; the locator workspace will add the user name automatically.

See Also

ILocatorWorkspace Interface | ILocatorWorkspace.GetLocator Method | ILocator Interface | ILocatorWorkspace.UpdateLocator Method | StreetMapAddressLocator Class | ESRIFDOAddressLocatorStyle Class | ESRIFDOAddressLocator Class | StreetMapAddressLocatorStyle Class | LocatorExtension Class | GxLocator Class | ILocalLocatorWorkspace Interface | ILocalLocatorWorkspace.Path Property | ILocatorManager.GetLocatorWorkspace Method | GxLocatorFactory Class | ILocatorStyle Interface | ILocatorWorkspace.GetLocatorStyle Method | ESRIFDOAddressLocatorStyle Class | StreetMapAddressLocatorStyle Class