I'm running a trace via SDK using as ResultTypes: AggregatedGeometry, Feature and Element
var resultTypes = new List<ResultType>();
resultTypes.Add(ResultType.AggregatedGeometry);
resultTypes.Add(ResultType.Feature);
resultTypes.Add(ResultType.Element);
//resultTypes.Add(ResultType.Connectivity);
traceArg.ResultTypes = resultTypes;
I can get the results successfully when executing the trace, however, if I add the ResultType.Connectivity from line 5 as one of the parameters of traceArg.ResultTypes the exception is thrown:
“Trace does not support connectivity or containment and attachment result types”
If I run the same trace using ArcGIS Pro's native trace tool and set Connectivity as one of the ResultType, I get the results without any errors.