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


ILocatorManager.GetLocatorFromDataset 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.GetLocatorFromDataset Method
ArcGIS Developer Help

ILocatorManager.GetLocatorFromDataset Method

Returns the locator attached to the dataset.

[Visual Basic .NET]
Public Function GetLocatorFromDataset ( _
    ByVal dataset As IDataset _
) As IAttachedLocator
[C#]
public IAttachedLocator GetLocatorFromDataset (
    IDataset dataset
);
[C++]
HRESULT GetLocatorFromDataset(
  IDataset* dataset
);
[C++]
Parameters
dataset [in]

dataset is a parameter of type IDataset*

Product Availability

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

Remarks

The GetLocatorFromDataset method returns the AttachedLocator from the dataset specified by the Dataset parameter. Use the HasLocatorAttached method to determine if a dataset has an AttachedLocator.

See Also

ILocatorManager Interface | ILocatorAttach2 Interface | ILocatorAttach2.AttachLocator Method | ILocatorManager.HasLocatorAttached Method | ILocatorManager.GetLocatorFromDataset Method | ILocatorManager Interface | ILocatorManager2 Interface | IAttachedLocator Interface | ILocatorManager.HasLocatorAttached Method | AttachedLocator Class | ILocatorManager.GetLocatorFromDataset Method