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


ILocatorManager.GetLocatorWorkspace Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Location > ESRI.ArcGIS.Location > Interfaces > IL > ILocatorManager Interface > ILocatorManager.GetLocatorWorkspace Method
ArcGIS Developer Help

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
);
[C++]
Parameters
wks [in]

wks is a parameter of type IWorkspace*

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 | IWorkspaceName2 Interface | IDatabaseConnectionInfo Interface | Workspace Class | IDataset Interface