ArcGIS Pro 2.8 API Reference Guide
GetCustomProperties Method
Example 

ArcGIS.Desktop.Layouts Namespace > Element Class : GetCustomProperties Method
Gets the Custom Properties for the element.
Syntax
public IList<CIMStringMap> GetCustomProperties()
Public Function GetCustomProperties() As IList(Of CIMStringMap)

Return Value

Returns a IList or empty list if there are no custom properties
Example
//Get a custom property that has been previously set.

//Perform on the worker thread
await QueuedTask.Run(() =>
{
  String custProp = element.GetCustomProperty("MyKeyString");
});
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Element Class
Element Members