ArcObjects Library Reference (Location)  

ILocatorManager2.GetAGSLocatorWorkspace Method

Returns the locator workspace for an ArcGIS server connection.

[Visual Basic .NET]
Public Function GetAGSLocatorWorkspace ( _
    ByVal serverConnection As IAGSServerConnectionName _
) As ILocatorWorkspace
public ILocatorWorkspace GetAGSLocatorWorkspace (
    IAGSServerConnectionName serverConnection
HRESULT GetAGSLocatorWorkspace(
  IAGSServerConnectionName* serverConnection,
  ILocatorWorkspace** locWks


serverConnection [in]

  serverConnection is a parameter of type IAGSServerConnectionName

locWks [out, retval]

  locWks is a parameter of type ILocatorWorkspace

Product Availability

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


An ArcGIS Server can serve GeocodeServers, which can be used by ArcGIS like any other locator. Use this method to return a reference to an AGSLocatorWorkspace that contains locators that represent the GeocodeServers served by the ArcGIS Server. The serverConnection parameter is a reference to an AGSServerConnectionName object that represents the ArcGIS Server connection.

See Also

ILocatorManager2 Interface | AGSLocatorWorkspace Class | AGSAddressLocator Class | ILocatorManager2.GetAGSLocatorWorkspace Method | ILocatorWorkspaceName2.AGSServerConnectionName Property | GeocodeServer Class | IEnumServerObjectTypeInfo Interface | ServerObject Class | IEnumServerObjectType Interface | ILocatorManager2.GetAGSLocatorWorkspace Method

.NET Related Topics

How to open locator workspaces