PrepAway - Latest Free Exam Questions & Answers

Which code segment should you add at line 03?

You are creating an application. You develop a custom control that renders a contextual tab. The
control contains the following code segment. (Line numbers are included for reference only.)
01Protected Overloads Overrides Sub OnPreRender(ByVal e As EventArgs) 02 Dim curRibbon
As SPRibbon = SPRibbon.GetCurrent(Me.Page) 03 04

curRibbon.MakeContextualGroupInitiallyVisible (“SP.Ribbon.ContextualGroup”, String.Empty) 05
MyBase.OnPreRender(e) 06 End Sub You need to ensure that when the custom control is
rendered, the custom contextual tab appears in the Ribbon. Which code segment should you add
at line 03?

PrepAway - Latest Free Exam Questions & Answers

A.
curRibbon.Enabled = true

B.
curRibbon.MakeRTEContextualTabsAvailable(“SP.Ribbon.ContextualTab “)

C.
curRibbon.MakeTabAvailable(“SP.Ribbon.ContextualTab”)

D.
curRibbon.Visible = true


Leave a Reply