Microsoft
70-573 · Question #172
You create a Web Part that calls a function named long Call. You discover that long Call takes a long time to execute. You need to display in the Developer Dashboard how long it takes to execute…
The correct answer is D. Using monitoredScope As New SPMonitoredScope("Long Call") longCall(). See the full explanation below for the reasoning.
Question
You create a Web Part that calls a function named long Call. You discover that long Call takes a long time to execute. You need to display in the Developer Dashboard how long it takes to execute long Call. Which code segment should you use?
Options
- ADim startTime As DateTime = DateTime.Now
- BDim startTime As DateTime = DateTime.Now
- CMonitor.Enter("Long Call")
- DUsing monitoredScope As New SPMonitoredScope("Long Call") longCall()
How the community answered
(25 responses)- A16% (4)
- B4% (1)
- C8% (2)
- D72% (18)
Community Discussion
No community discussion yet for this question.