AnsweredAssumed Answered

QueuedTask in Visual Basic

Question asked by OsDiAl31 on Mar 14, 2019
Latest reply on Mar 15, 2019 by OsDiAl31



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:


string gdbPath = "@C:\\myDataFolder\\myData.gdb";
var newlyAddedGDB = await QueuedTask.Run(() => {
  //Create the File GDB project item
  var item = ItemFactory.Instance.Create(gdbPath) as IProjectItem;
  //If it is succesfully added to the project, return it otherwise null
  return Project.Current.AddItem(item) ? item as GDBProjectItem : null;


How can I create the QueuedTas in Visual Basic?