ArcObjects Library Reference (GeoDatabase)  

ILocatorWorkspace.CopyLocator Method

Copies a locator.

[Visual Basic .NET]
Public Sub CopyLocator ( _
    ByVal srcName As String, _
    ByVal dstName As String _
)
[C#]
public void CopyLocator (
    string srcName,
    string dstName
);
[C++]
HRESULT CopyLocator(
  BSTR srcName,
  BSTR dstName
);
[C++]

Parameters

srcName [in]   srcName is a parameter of type BSTR dstName [in]   dstName is a parameter of type BSTR

Product Availability

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

Description

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

Remarks

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 | ILocatorWorkspace.AddLocator Method | ILocatorWorkspace.DeleteLocator Method | ILocatorWorkspace.CopyLocator Method