AnsweredAssumed Answered

ArcGIS Pro 2.4 ClipboardItem ItemInfoValue bug?

Question asked by vteyesriaustralia-com-au-esridist Employee on Jan 12, 2020
Latest reply on Jan 13, 2020 by vteyesriaustralia-com-au-esridist

Hi, I have a piece of code that worked in 2.3 but failed in 2.4 with the following error, 

 

Method not found at ArcGIS.Desktop.Core.ClipboardItem.get_ItemInfoValue().

 

Everything compile fine and I can confirm the following code 

 

public ItemInfoValue ItemInfoValue { get; set; }

 

in the ClipboardItem class. My Pro SDK version is 2.4.0.19948.

 

I check the ArcGIS.Desktop.Core reference -> C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll which points to my ArcGIS pro 2.4 install.

 

I am wondering if I have a mismatch in reference against pro somehow. I have also tried clean/rebuild. Any advise is much appreciated.

 

if (dropInfo.Data is List<ClipboardItem> clipboardItems)
{
    foreach (var item in clipboardItems)
    {
       var thisItem = item;
       data_path = thisItem.ItemInfoValue.catalogPath;//thisItem.CatalogPath;
  
     }

}

 

Outcomes