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


ILocatorManager.GetLocatorFromDataset Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Location)  

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,
  IAttachedLocator** AttachedLocator
);
[C++]

Parameters dataset [in]
dataset is a parameter of type IDataset AttachedLocator [out, retval]
AttachedLocator is a parameter of type IAttachedLocator

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

.NET Related Topics

How to rematch a geocoded feature class