ArcGIS Pro 2.7 API Reference Guide
GetContent(Boolean,Boolean,Boolean,Boolean,Boolean) Method

ArcGIS.Core.Data.UtilityNetwork.NetworkDiagrams Namespace > NetworkDiagram Class > GetContent Method : GetContent(Boolean,Boolean,Boolean,Boolean,Boolean) Method
Indicates whether to return diagram info.
Indicates whether to return geometries of the diagram features.
Indicates whether to return attributes of associated source objects.
Indicates whether to returns aggregations of diagram features.
Indicates whether to use coded value names when returning attributes of associated source objects.
Returns diagram information and content as a JSON string. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

addDiagramInfo
Indicates whether to return diagram info.
addGeometries
Indicates whether to return geometries of the diagram features.
addAttributes
Indicates whether to return attributes of associated source objects.
addAggregations
Indicates whether to returns aggregations of diagram features.
useCodedValueNames
Indicates whether to use coded value names when returning attributes of associated source objects.

Return Value

The JSON string containing the diagram content.
Exceptions
ExceptionDescription
A geodatabase-related exception has occurred.
Remarks
This JSON string can be used to transfer data into external systems, such as network calculation or analysis software.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

NetworkDiagram Class
NetworkDiagram Members
Overload List