Public Function ToUIDDictionary() As Dictionary(Of String,List(Of Object))
public Dictionary<string,List<object>> ToUIDDictionary()
Return Value
Dictionary of named object types and their corresponding Ids.
Public Function ToUIDDictionary() As Dictionary(Of String,List(Of Object))
public Dictionary<string,List<object>> ToUIDDictionary()
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
{
await QueuedTask.Run(() =>
{
var idSet = kgLayer.GetIDSet();
// is the set empty?
var isEmpty = idSet.IsEmpty;
// get the count of named object types
var countNamedObjects = idSet.NamedObjectTypeCount;
// does it contain the entity "Species";
var contains = idSet.Contains("Species");
// get the idSet as a dictionary of namedObjectType and oids
var oidDict = idSet.ToOIDDictionary();
var speciesOIDs = oidDict["Species"];
// alternatively get the idSet as a dictionary of
// namedObjectTypes and uuids
var uuidDict = idSet.ToUIDDictionary();
var speciesUuids = uuidDict["Species"];
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)