Home » Microsoft » 70-517 » Which items should you implement?
You need to implement logging.
Which items should you implement? (Each correct answer presents a complete solution. Choose all that apply.)
A. SPDiagnosticsServiceBase.WriteEvent
B. Microsoft.SharePoint.Diagnostics.ULSLogEntry
C. SPUser.Sid
D. PortalLog.LogString
E. SPAlertTemplate
F. SPSecurity.RunWithElevatedPrivileges
Correct Answer: BF
Explanation/Reference:
F: The SPSecurity.RunWithElevatedPrivileges executes the specified method with Full Control rights even if the user does not otherwise have Full Control.
* From Scenario:
/ You design an application framework. The framework is used by other developers on the team. The framework must include entry points that are used to log errors and exceptions. You need the entry points.
Incorrect:
Not D: PortalLog.LogString method
This member is reserved for internal use and is not intended to be used directly from your code.