TraceConfiguration is currently inaccessible via the NamedTraceConfiguration instance.
Is there any other possible way to access the TraceConfiguration and its properties from a NamedTraceConfiguration instance?
IReadOnlyList<NamedTraceConfiguration> namedTraceConfigurations = traceManager.GetNamedTraceConfigurations(namedTraceConfigurationQuery);
NamedTraceConfiguration namedTraceConfig = namedTraceConfigurations.FirstOrDefault();
The plan would be to use the namedTraceConfig instance to get the TraceConfiguration and then check the properties such as Functions, Filters, Traversability, etc.
Solved! Go to Solution.
You can get the TraceConfiguration from a TraceArgument as below:
List<Element> startingPoints = new List<Element> { startingPointElement };
TraceArgument traceArgument = new TraceArgument(namedTraceConfiguration, startingPoints);
TraceConfiguration traceConfiguration = traceArgument.Configuration;
You can get the TraceConfiguration from a TraceArgument as below:
List<Element> startingPoints = new List<Element> { startingPointElement };
TraceArgument traceArgument = new TraceArgument(namedTraceConfiguration, startingPoints);
TraceConfiguration traceConfiguration = traceArgument.Configuration;
Thank you so much, Aashis!