nerdexam
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)
  • A
    17% (4)
  • B
    75% (18)
  • C
    4% (1)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice