Hi!
I want to add a File Gedatabase to a project. Most of the documentation is only explained for C# and sometimes I have no idea how to tranlate it to Visual Basic.
I need to translate this code into Visual Basic:
<SPAN class="keyword token">string</SPAN> gdbPath <SPAN class="operator token">=</SPAN> <SPAN class="string token">"@C:\\myDataFolder\\myData.gdb"</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> newlyAddedGDB <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">await</SPAN> QueuedTask<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Run</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">=</SPAN><SPAN class="operator token">></SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token">//Create the File GDB project item</SPAN>
<SPAN class="keyword token">var</SPAN> item <SPAN class="operator token">=</SPAN> ItemFactory<SPAN class="punctuation token">.</SPAN>Instance<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Create</SPAN><SPAN class="punctuation token">(</SPAN>gdbPath<SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">as</SPAN> IProjectItem<SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">//If it is succesfully added to the project, return it otherwise null</SPAN>
<SPAN class="keyword token">return</SPAN> Project<SPAN class="punctuation token">.</SPAN>Current<SPAN class="punctuation token">.</SPAN><SPAN class="token function">AddItem</SPAN><SPAN class="punctuation token">(</SPAN>item<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">?</SPAN> item <SPAN class="keyword token">as</SPAN> GDBProjectItem <SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">null</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>How can I create the QueuedTas in Visual Basic?