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 | ILocatorManager.HasLocatorAttached Method | ILocatorManager.GetLocatorFromDataset Method | ILocatorAttach2.AttachLocator Method | ILocatorAttach2 Interface | ILocatorManager Interface | AttachedLocator Class | ILocatorManager.GetLocatorFromDataset Method | IAttachedLocator Interface | ILocatorManager.HasLocatorAttached Method | ILocatorManager2 Interface