ArcObjects Library Reference (Location)  

ILocatorManager.GetLocatorWorkspaceFromPath Method

Returns the locator workspace for a path.

[Visual Basic .NET]
Public Function GetLocatorWorkspaceFromPath ( _
    ByVal Path As String _
) As ILocatorWorkspace
[C#]
public ILocatorWorkspace GetLocatorWorkspaceFromPath (
    string Path
);
[C++]
HRESULT GetLocatorWorkspaceFromPath(
  BSTR Path,
  ILocatorWorkspace** locWks
);
[C++]

Parameters

Path [in]   Path is a parameter of type BSTR locWks [out, retval]

  locWks is a parameter of type ILocatorWorkspace

Product Availability

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

Remarks

The GetLocatorWorkspaceFromPath method returns a LocalLocatorWorkspace for the given Path. To open the default local locator workspace (represented by the top-level Address Locators folder in ArcCatalog), specify an empty string for the Path parameter.

See Also

ILocatorManager Interface | ILocatorWorkspace2 Interface | ILocatorWorkspaceName Interface | ILocatorWorkspace Interface | LocatorManager Class | ILocatorWorkspaceName2 Interface | LocatorEnumerator Class | ILocatorManager.GetLocatorWorkspaceFromPath Method | IDatabaseLocatorWorkspace Interface | LocatorWorkspaceName Class | ILocatorManager Interface | ILocatorManager2 Interface | DatabaseLocatorWorkspace Class | LocalLocatorWorkspace Class

.NET Samples

Single line address geocoding (Code Files: SingleLineGeocodingForm)

.NET Related Topics

Creating an address locator | How to open locator workspaces | How to standardize an address