SetCustomProperty(String,String) Method
Sets a CustomProperty value for the element. This method must be called on the MCT. Use QueuedTask.Run.
Element_SetCustomProperty
//Set a custom property on an element.
//Perform on the worker thread
await QueuedTask.Run(() =>
{
element.SetCustomProperty("MyKeyString", "MyValueString");
});
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.