How to define multiple flags in a config file?

  • Thread starter Thread starter sklett
  • Start date Start date
S

sklett

I have trace configuration data in my config file and I want to specify
outoption flags like this:
<code>
traceOutputOptions="Callstack | DateTime" />

</code>

This throws an exception becuase it can't be parsed. I have never seen how
to combine flags in a config file. Is it possible?
 
sklett said:
I have trace configuration data in my config file and I want to specify
outoption flags like this:
<code>
traceOutputOptions="Callstack | DateTime" />

</code>

This throws an exception becuase it can't be parsed. I have never seen
how to combine flags in a config file. Is it possible?

I haven't tried, but test it with a comma-delimited list instead (this is
how ToString method displays on a flag when you pass in the parameter to
display names on an flag enumeration).

HTH,
Mythran
 
Back
Top