Public Function GetSelectedRecords() As KnowledgeGraphLayerIDSet
public KnowledgeGraphLayerIDSet GetSelectedRecords()
Return Value
A ArcGIS.Desktop.Mapping.KnowledgeGraphLayerIDSet representing the selected records.
Public Function GetSelectedRecords() As KnowledgeGraphLayerIDSet
public KnowledgeGraphLayerIDSet GetSelectedRecords()
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
{
// get the active investigation view
var iv = KnowledgeGraphInvestigationView.Active;
await QueuedTask.Run(() =>
{
// get the investigation
var inv = iv.Investigation;
// get the set of selected records
var idSet = iv.GetSelectedRecords();
// view these records in a link chart
var map = MapFactory.Instance.CreateLinkChart("myLinkChart", new Uri(inv.ServiceUri), idSet);
ProApp.Panes.CreateMapPaneAsync(map);
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)