<?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 Re: Using Exists Method from Geoprocessor object - C# in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-exists-method-from-geoprocessor-object-c/m-p/159922#M4205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have a solution for how to use gp.Exists in C#?&amp;nbsp; Kirk's suggestion above doesn't seem to compile.&amp;nbsp; Since the second parameter is documented as optional, I tried using null but that doesn't compile either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Feb 2011 16:11:19 GMT</pubDate>
    <dc:creator>ReidWatkins</dc:creator>
    <dc:date>2011-02-11T16:11:19Z</dc:date>
    <item>
      <title>Using Exists Method from Geoprocessor object - C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-exists-method-from-geoprocessor-object-c/m-p/159920#M4203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All, I am re writting a&amp;nbsp; VB6 apps to C#, I reach the point where I need to use Exists method but I had not find the right way to do it, any help it would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my current vb6 code and it's works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim Site As String&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Site = GP.Exists("\\cakotrm3\Users\AHCP_Roads\Road Assessment\CA_RAD.gdb\sites", "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if Site = true then &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do something&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is my current C# code (no working).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exists(object input value, ref object data type)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if GP.Exists(@"\\cakotrm3\\Users\AHCP_Roads\Road Assessment\CA_RAD.gdb\site",object);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got a message "No everload for 'Exists' methods takes '1' argument". I know that is related with the second Exists method argument&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 18:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-exists-method-from-geoprocessor-object-c/m-p/159920#M4203</guid>
      <dc:creator>Jose_LuisGarcinuno-Oporto</dc:creator>
      <dc:date>2010-05-25T18:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Exists Method from Geoprocessor object - C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-exists-method-from-geoprocessor-object-c/m-p/159921#M4204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;try adding "ref"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if GP.Exists(@"\\cakotrm3\\Users\AHCP_Roads\Road Assessment\CA_RAD.gdb\site",ref object)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do_something();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-exists-method-from-geoprocessor-object-c/m-p/159921#M4204</guid>
      <dc:creator>KirkKuykendall</dc:creator>
      <dc:date>2021-12-12T16:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Exists Method from Geoprocessor object - C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-exists-method-from-geoprocessor-object-c/m-p/159922#M4205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have a solution for how to use gp.Exists in C#?&amp;nbsp; Kirk's suggestion above doesn't seem to compile.&amp;nbsp; Since the second parameter is documented as optional, I tried using null but that doesn't compile either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 16:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-exists-method-from-geoprocessor-object-c/m-p/159922#M4205</guid>
      <dc:creator>ReidWatkins</dc:creator>
      <dc:date>2011-02-11T16:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Exists Method from Geoprocessor object - C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-exists-method-from-geoprocessor-object-c/m-p/159923#M4206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Usually to pass a null by ref in C# you have to declare a variable as object and initialize it to type.missing.&amp;nbsp; If you passed an empty string in vb.net, I would think you need to pass the empty string by ref in C#, "ref string.empty".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 17:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-exists-method-from-geoprocessor-object-c/m-p/159923#M4206</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-02-11T17:57:00Z</dc:date>
    </item>
  </channel>
</rss>

