ArcObjects Library Reference (Location)  

ILocatorManager.GetLocatorWorkspace Method

Returns the locator workspace for a workspace.

[Visual Basic .NET]
Public Function GetLocatorWorkspace ( _
    ByVal wks As IWorkspace _
) As ILocatorWorkspace
[C#]
public ILocatorWorkspace GetLocatorWorkspace (
    IWorkspace wks
);
[C++]
HRESULT GetLocatorWorkspace(
  IWorkspace* wks,
  ILocatorWorkspace** locWks
);
[C++]

Parameters

wks [in]

  wks is a parameter of type IWorkspace

locWks [out, retval]

  locWks is a parameter of type ILocatorWorkspace

Product Availability

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

Remarks

The GetLocatorWorkspace method returns a reference to a locator workspace contained by the workspace represented by the wks parameter.

If the wks parameter is a reference to an ArcSDE workspace, then this method returns a reference to a DatabaseLocatorWorkspace. If the wks parameter is a reference to a file workspace, such as a shapefile or coverage workspace, then this method returns a reference to a LocalLocatorWorkspace that contains locators in the folder that contains the file workspace. If the wks parameter is a reference to a personal Geodatabase workspace, then this method returns a reference to a LocalLocatorWorkspace that contains locators in the folder that contains the personal Geodatabase.

See Also

ILocatorManager Interface | ILocalLocatorWorkspace Interface | ILocalLocatorWorkspace.Path Property | ILocatorManager.GetLocatorWorkspace Method | GxLocatorFactory Class | IRemoteDatabaseWorkspaceFactory Interface | ISetDefaultConnectionInfo Interface | IWorkspaceName Interface | IFDOToADOConnection.Connect Method | IFDOToADOConnection.CreateADOConnection Method | FdoAdoConnection Class | IDataset Interface | IWorkspaceName2 Interface | Workspace Class | IDatabaseConnectionInfo Interface

.NET Related Topics

Creating an address locator | How to geocode a single address | How to geocode a table of addresses | How to open locator workspaces | How to work with geocoding properties | LocationUI |