ArcGIS Enterprise SDK
ILocatorWorkspace.CopyLocator Method
ArcGIS Developer Help

ILocatorWorkspace.CopyLocator Method

Copies a locator.

[Visual Basic .NET]
Public Sub CopyLocator ( _
    ByVal srcName As String, _
    ByVal dstName As String _
public void CopyLocator (
    string srcName,
    string dstName


The CopyLocator method creates a copy of the specified locator in the same locator workspace.


The srcName parameter is the name of the locator that you want to copy. The dstName parameter is the name for the copy of the locator.

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.  


See Also

ILocatorWorkspace Interface