ArcGIS Developer Help  (GeoDatabase)    

ILocatorWorkspace.DeleteLocator Method

Deletes a locator.

[Visual Basic 6.0]
Sub DeleteLocator(
    ByVal Name As String _
)
[Visual Basic .NET]
Public Sub DeleteLocator ( _
    ByVal Name As String _
)
[C#]
public void DeleteLocator (
    string Name
);
[Java]
public void deleteLocator (
    String Name
)
throws
    IOException,
    AutomationException
[C++]
HRESULT DeleteLocator(
  BSTR Name
);
[C++]

Parameters

Name [in]

  Name is a parameter of type BSTR

Product Availability

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

Description

The DeleteLocator method deletes a locator or locator style from a locator workspace.

Remarks

The Name parameter is the name of the locator or locator style that you want to remove from the locator workspace.

Within the default local locator workspace, and within ArcSDE locator workspaces, locator names are prefixed by a user name, as in "jack.My Locator". In local locator workspaces, the locator name is prefixed by the user name of the current user. In ArcSDE workspaces, the locator name is prefixed by the name of the ArcSDE user that owns the locator. When you call methods in ArcObjects that have parameters that specify locators in a locator workspace, you must specify the full name of the locator, including the user name. Failing to do so will result in an error.  

See Also

ILocatorWorkspace Interface | ILocatorWorkspace.AddLocator Method | ILocatorWorkspace.DeleteLocator Method | ILocatorWorkspace.CopyLocator Method

 


Feedback Send feedback on this page