Microsoft
70-573 · Question #67
You create a Web Part that calls a function named longCall. You discover that longCall 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 (SPMonitoredScope monitoredScope = new SPMonitoredScope("Long. MNEMONIC RULE: "Developer Dashboard = SPMonitoredScope" Monitors performance and resource use for a specified scoped block of code. SPMonitoredScope Class
Developing SharePoint Solutions
Question
You create a Web Part that calls a function named longCall. You discover that longCall takes a long time to execute. You need to display in the Developer Dashboard how long it takes to execute longCall. Which code segment should you use?
Options
- ADateTime startTime = DateTime.Now;
- BDateTime startTime = DateTime.Now;
- CMonitor.Enter("Long Call");
- Dusing (SPMonitoredScope monitoredScope = new SPMonitoredScope("Long
How the community answered
(55 responses)- A9% (5)
- B16% (9)
- C4% (2)
- D71% (39)
Explanation
MNEMONIC RULE: "Developer Dashboard = SPMonitoredScope" Monitors performance and resource use for a specified scoped block of code. SPMonitoredScope Class
Topics
#Developer Dashboard#SPMonitoredScope#performance monitoring#diagnostics
Community Discussion
No community discussion yet for this question.