You are creating a Web Part in SharePoint Server 2010.
You need to ensure that the Web Part can send data to another Web Part.
Which interface should you implement?
A. IWebPartFieldYou plan to activate the Developer Dashboard. You create a command line application that contains the following code segment. (Line numbers are included for reference only.) 01Dim cs As SPWebService = SPWebService.ContentService 02cs.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.[On] You execute the application and discover that the Developer Dashboard fails to appear. You need to ensure that the application activates the Developer
Dashboard. What should you do?
A. Add the following line of code at line 03. cs.Update()You plan to create a custom Web Part that displays items from a custom SharePoint list named Project.
You need to ensure that you can access the list by using strongly-typed objects in Microsoft Visual Studio 2010.
What should you do first?
A. Run ecmangen.exe.You create an event receiver. The ItemAdded method for the event receiver contains the following code segment. (Line numbers are included for reference only.)
01Dim recWeb As SPWeb = properties.Web
02 Using siteCollection As New SPSite("http://site1/hr")
03 Using web As SPWeb = siteCollection.OpenWeb()
04 Dim oWeb As PublishingWeb = PublishingWeb.GetPublishingWeb(web)
05 Dim pubWebs As PublishingWebCollection = oWeb.GetPublishingWebs()
06 For Each iWeb As PublishingWeb In pubWebs
07 Try
08 Dim page As SPFile = web.GetFile("/Pages/default.aspx")
09 Dim wpManager As SPLimitedWebPartManager =
page.GetLimitedWebPartManager(PersonalizationScope.[Shared])
10 Finally
11 If iWeb IsNot Nothing Then
12 iWeb.Close()
13 End If
14 End Try
15 Next
16 End Using
17 End Using
You need to prevent the event receiver from causing memory leaks. Which object should you dispose of?
A. oWeb at line 04You have one Web application that contains several SharePoint site collections. You need to create a Feature that adds a custom button to the Documents tab on the Ribbon of one site collection only. What should you do?
A. Create a new Feature. In a new node, specify the location of Ribbon.Tabs._children.You need to add a new field to a provisioned content type. You must propagate the field to child lists and child content types.
What should you use?
You have a custom Web Part.
You need to create a custom user interface for modifying the Web Part properties. What should you do?
A. Create a new Master Page. Implement the IControlBuilderAccessor interface.You need to create a Web Part that adds a term set to the current SharePoint site collection's term store. You write the following code segment. (Line numbers are included for reference only.)
01Dim txtBoxTermSetToAdd As New System.Web.UI.WebControls.TextBox()
02Dim session As New TaxonomySession(SPContext.Current.Site)
03Dim addedTerm As TermSet = session.TermStores(0).Groups
("MyNewTermStore").CreateTermSet(txtBoxTermSetToAdd.Text) Which code segment should you add at line 04?
A. addedTerm.Export()You create a Visual Web Part.
You need to add an image to the Web Part. The image must be deployed to the 14\TEMPLATE\IMAGES folder.
What should you do in Microsoft Visual Studio?
A. Add a SharePoint Layouts mapped folder and create a subfolder named Images.Using Microsoft Visual Studio 2010, you create a custom workflow action named WF1 that copies the content of a document library to another document library.
WF1 is used in a Microsoft SharePoint Designer reusable workflow.
You need to ensure that the workflow action can be deployed to multiple sites.
Where should you define the workflow action?
A. the ReplicatorActivity activityNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-573 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.