70-573 · Question #21
You create a custom Web Part. You need to ensure that a custom property is visible in Edit mode. Which attribute should you set in the Web Part?
The correct answer is B. WebBrowsable. MNEMONIC RULE: "Web Part is visible = WebBrowsable" The WebBrowsable attribute specifies that the decorated property should appear in the editor component ofthe web part. It only allows the end user to modify the property and does nothing about persistence. WebBrowsable will…
Question
You create a custom Web Part. You need to ensure that a custom property is visible in Edit mode. Which attribute should you set in the Web Part?
Options
- AWebDisplayName
- BWebBrowsable
- CPersonalizable
- DWebCategoryName
How the community answered
(65 responses)- A6% (4)
- B77% (50)
- C3% (2)
- D14% (9)
Explanation
MNEMONIC RULE: "Web Part is visible = WebBrowsable" The WebBrowsable attribute specifies that the decorated property should appear in the editor component ofthe web part. It only allows the end user to modify the property and does nothing about persistence. WebBrowsable will make the property appear in the ToolPane or EditorPart of the WebPart. WebBrowsable vs Personalizable in Web Parts
Topics
Community Discussion
No community discussion yet for this question.