70-573 · Question #3
You are creating a Web Part that will be deployed as a sandboxed solution. You need to ensure that the Web Part can write debugging information to the SharePoint trace logs. Which class should the…
The correct answer is D. SPProxyOperation. MNEMONIC RULE: "sandboxed solution needs SPProxyOperation" You can implement your full-trust functionality in classes that derive from the SPProxyOperation abstract classand deploy the assembly to the global assembly cache. These classes expose a full-trust proxy that you…
Question
You are creating a Web Part that will be deployed as a sandboxed solution. You need to ensure that the Web Part can write debugging information to the SharePoint trace logs. Which class should the logging component inherit?
Options
- ASPDelegate
- BSPLog
- CSPPersistedObject
- DSPProxyOperation
How the community answered
(25 responses)- A4% (1)
- B12% (3)
- C4% (1)
- D80% (20)
Explanation
MNEMONIC RULE: "sandboxed solution needs SPProxyOperation" You can implement your full-trust functionality in classes that derive from the SPProxyOperation abstract classand deploy the assembly to the global assembly cache. These classes expose a full-trust proxy that you cancall from within the sandbox environment. Full-trust proxies can provide a useful way to expose logging and configuration functionality to sandboxedapplications. Hybrid Approaches
Topics
Community Discussion
No community discussion yet for this question.