Microsoft
70-573 · Question #56
70-573 Question #56: Real Exam Question with Answer & Explanation
Sign in or unlock 70-573 to reveal the answer and full explanation for question #56. The question stem and answer options stay visible for context.
Question
You create a Feature named Feature1. Feature1 is activated in a SharePoint site. You create a Web Part that contains the following code. - Dim web As SPWeb = site.OpenWeb() - Dim feature As SPFeatureDefinition = SPFarm.Local.FeatureDefinitions("Feature1") You need to modify the Web Part to activate Feature1 in Site1 only. Which code segment should you add to the Web Part?
Options
- Asite.Features.Add(feature.Id)
- Bsite.WebApplication.WebService.Features.Add(feature.Id)
- Cweb.Features.Add(feature.Id)
- Dweb.Site.WebApplication.WebService.Features.Add(feature.Id)
Unlock 70-573 to see the answer
You've previewed enough free 70-573 questions. Unlock 70-573 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.