<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do I get the name of an address locator's reference data? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-name-of-an-address-locator-s/m-p/236723#M6123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In a .NET project I have a composite locator that is made up of three different address locators.&amp;nbsp; One locator is built against an address point feature, one is built against a parcel feature, and one is built against a centerline/street feature.&amp;nbsp; I need to determine in code the name of the feature dataset each of these individual address locators is built against.&amp;nbsp; I have the list of the locators and I see IEnumReferenceDataTable and IReferenceDataTable but haven't been able to get any further. Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2013 13:53:00 GMT</pubDate>
    <dc:creator>MelodyMeinhardt</dc:creator>
    <dc:date>2013-01-11T13:53:00Z</dc:date>
    <item>
      <title>How do I get the name of an address locator's reference data?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-name-of-an-address-locator-s/m-p/236723#M6123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In a .NET project I have a composite locator that is made up of three different address locators.&amp;nbsp; One locator is built against an address point feature, one is built against a parcel feature, and one is built against a centerline/street feature.&amp;nbsp; I need to determine in code the name of the feature dataset each of these individual address locators is built against.&amp;nbsp; I have the list of the locators and I see IEnumReferenceDataTable and IReferenceDataTable but haven't been able to get any further. Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 13:53:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-name-of-an-address-locator-s/m-p/236723#M6123</guid>
      <dc:creator>MelodyMeinhardt</dc:creator>
      <dc:date>2013-01-11T13:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the name of an address locator's reference data?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-name-of-an-address-locator-s/m-p/236724#M6124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have a valid locator instance you should iterate through the reference tables. Each reference table has a name property. This name instance should implement IDatasetName. Using IDatasetName you have the information of the dataset and its workspace and you can open the dataset if necessary. Keep in mind, this will throw an exception if the dataset is not accessible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
internal static void WriteReferenceTableNamesToConsole(ILocator locator)
{
 var addressLocator = locator as IReferenceDataTables;
 if (null == addressLocator)
&amp;nbsp; return;

 var referenceDataTables = addressLocator.Tables;
 IReferenceDataTable referenceDataTable;
 while (null != (referenceDataTable = referenceDataTables.Next()))
 {
&amp;nbsp; var tableName = (IDatasetName) referenceDataTable.Name;
&amp;nbsp; Console.WriteLine(tableName.WorkspaceName.PathName + Environment.NewLine + tableName.Name);

&amp;nbsp; try
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var referenceTable = (IFeatureClass) ((IName) tableName).Open();
&amp;nbsp;&amp;nbsp; // ...
&amp;nbsp; }
&amp;nbsp; catch (COMException)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; Console.Error.WriteLine(string.Format("Reference data '{0}' for locator '{1}' not accessible!", tableName, locator.Name));
&amp;nbsp; }
 }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards from Germany&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:56:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-name-of-an-address-locator-s/m-p/236724#M6124</guid>
      <dc:creator>Jan-Tschada</dc:creator>
      <dc:date>2021-12-11T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the name of an address locator's reference data?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-name-of-an-address-locator-s/m-p/236725#M6125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That worked, thank you very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 19:25:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-name-of-an-address-locator-s/m-p/236725#M6125</guid>
      <dc:creator>MelodyMeinhardt</dc:creator>
      <dc:date>2013-01-14T19:25:49Z</dc:date>
    </item>
  </channel>
</rss>

