Parameters
- dataSet
- The dataset to check
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
var featureLyer = MapView.Active.Map.GetLayersAsFlattenedList() .OfType<FeatureLayer>().FirstOrDefault(); if (featureLyer == null) return; QueuedTask.Run(() => { //Get the feature class var fc = featureLyer.GetFeatureClass(); // is it part of a KnowledgeGraph? var isPartOfKG = fc.GetIsKnowledgeGraphDataset(); });
Target Platforms: Windows 11, Windows 10