Microsoft
70-573 · Question #156
You need to create a Web Part that hides the out-of-the-box Ribbon on the current page. Which code segment should you include in the Web Part?
The correct answer is B. SPRibbon.GetCurrent (me.Page) .CommandUIVisible = false. See the full explanation below for the reasoning.
Question
You need to create a Web Part that hides the out-of-the-box Ribbon on the current page. Which code segment should you include in the Web Part?
Options
- Ame.Page.FindControl('SPRibbon") .Dispose)
- BSPRibbon.GetCurrent (me.Page) .CommandUIVisible = false
- Cme.Page.FindControlC'SPRibbon") .Visible - false
- DSPRibbon.GetCucrenttme.Page).Dispose()
How the community answered
(24 responses)- A17% (4)
- B75% (18)
- C4% (1)
- D4% (1)
Community Discussion
No community discussion yet for this question.