J
Jay Pondy
In the example below where the TraceEvent method is being called how
can I get the Methods name ("MethodA") I am passing as the message
dynamically?
It is a real pain to have to copy the methods name repeatedly into my
tracing code. Surely there is some way to use the tracing system
where it can automatically put the method name into the tracing stream
for me. No?
Private Sub MethodA()
T.TraceEvent(TraceEventType.Start, 0, "MethodA")
Some code...
T.TraceEvent(TraceEventType.Stop, 0, "MethodA")
End Sub
can I get the Methods name ("MethodA") I am passing as the message
dynamically?
It is a real pain to have to copy the methods name repeatedly into my
tracing code. Surely there is some way to use the tracing system
where it can automatically put the method name into the tracing stream
for me. No?
Private Sub MethodA()
T.TraceEvent(TraceEventType.Start, 0, "MethodA")
Some code...
T.TraceEvent(TraceEventType.Stop, 0, "MethodA")
End Sub