ArcGIS Pro 2.3 API Reference Guide
GetDefinition Method (Element)
Example 

ArcGIS.Desktop.Layouts Namespace > Element Class : GetDefinition Method
Returns the element's CIM definition. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Function GetDefinition() As CIMElement
public CIMElement GetDefinition()

Return Value

Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
Example
//Modify an element's CIM properties.

//Perform on the worker thread
await QueuedTask.Run(() =>
{
  CIMElement CIMElm = element.GetDefinition();

  //Modify a CIM value

  element.SetDefinition(CIMElm);
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Element Class
Element Members