Public Function GetDatastore() As KnowledgeGraph
public KnowledgeGraph GetDatastore()
Public Function GetDatastore() As KnowledgeGraph
public KnowledgeGraph GetDatastore()
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
{
// get an existing investigation
var investigationProjectItems = Project.Current.GetItems<KnowledgeGraphInvestigationProjectItem>();
var investigationProjectItem = investigationProjectItems.FirstOrDefault(ipi => ipi.Name.Equals("myInvestigation"));
await QueuedTask.Run(() =>
{
// get the datasore
using (var kg = investigationProjectItem.GetDatastore())
{
// do something
}
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)