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

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

ILocatorWorkspace.GetLocatorName Method

Gets a LocatorName object.

[Visual Basic .NET]
Public Function GetLocatorName ( _
    ByVal Name As String _
) As ILocatorName
public ILocatorName GetLocatorName (
    string Name
HRESULT GetLocatorName(
  BSTR Name
Name [in]

Name is a parameter of type BSTR

Product Availability

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


The GetLocatorName method retrieves a LocatorName object from a locator workspace.


The Name parameter is the name of the locator that you want to retrieve from the locator workspace.

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.GetLocatorName Method | ILocatorName Interface | LocatorName Class