You plan to create a workflow that has the following three activities:
You need to ensure that each time the workflow starts, the three activities are linked to a single task.
What should you do?
A. Create an SPWorkflowEventReceiver event receiver for the SharePoint Tasks list.You have a list named Projects that contains a column named ClassificationMetadata. You need to create a Web Part that updates the ClassificationMetadata value to NA for each item in the Projects list. You write the following code segment. (Line numbers are included for reference only.)
01For Each currentItem As SPListItem In SPContext.Current.Web.Lists("Projects").Items 03Next
Which code segment should you add at line 02?
A. currentItem("ClassificationMetadata") = "NA"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.)
01 protected override void OnPreRender(EventArgs e)
02 {
03 SPRibbon curRibbon = SPRibbon.GetCurrent(this.Page); 05 curRibbon.MakeContextualGroupInitiallyVisible("SP.Ribbon.ContextualGroup",
string.Empty);
06 base.OnPreRender(e);
07 }
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 04?
A. curRibbon.Enabled = true;You create a Web Part. You need to display the number of visits to a SharePoint site collection in a label named LblVisits. You write the following code segment. (Line numbers are included for reference only.)
01 RunWithElevatedPrivileges(ElevateSub)
02 Private Sub ElevatedSub()
03 Try
05 LblVisits.Text = site.Usage.Visits.ToString()
06 Finally
07 ...
08 End Try
09 End Sub
Which code segment should you add at line 04?
A. Dim esite As New SPSite(SPContext.Current.Site.ID)You create a Feature.
You need to add an item to the context menu of a list.
Which type of element should you use?
A. a ListlnstanceYou are creating an application page that will open a dialog box. The application page uses a custom master page. You write the following code segment. (Line numbers are included for reference only.)
01 < script type="text/javascript" >
02 function DialogCallback ( dialogResult, retumValue ){>
03 function OpenEditDialog (id){
04 var options = {
url:" http://intranet/Jayouts /MsgToShow.aspx, width: 300,
05 height: 300,
06 dialogReturnValueCallback : DialogCallback
07 };
08 SP.UI.ModalDialog.showModalDialog (options);
09 }
10 < /script >
You need to ensure that the code opens the dialog box.
What should you do?
A. Add a script link that references SP.js.You are creating a custom workflow action to be used in Microsoft SharePoint Designer reusable workflows.
The action programmatically creates a SharePoint site named Site1 at a specific URL. The workflow actions schema file contains the following code segment.
ClassName="SPDActivityDemo.CreateSite" Assembly="SPDActivityDemo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a4a7a2c3215a71b" AppliesTo="all" Category="Test">
You need to ensure that users can specify the URL property of the action in SharePoint Designer.
What should you add to the schema of the action?
You create a custom list named Products.
You need to perform a Representational State Transfer (REST) query that returns products 30 to 39.
Which URL should you use?
A. /ListData.svc/Products(30) $skip=10You plan to create one provider Web Part and two consumer Web Parts. You need to ensure that the consumer Web Parts can receive data from the provider Web Part. You create an interface that contains the following code segment.
Public Interface Interface1
Property Parameter1 As String
End Interface
What should you do next?
A. Implement Interface1 in the provider Web Part.You are creating two Web Parts named WPMaster and WPDetails.
You need to ensure that when an item is selected from WPMaster, the details of the item are displayed in WPDetails.
This must occur without requiring WPDetails to retrieve the existing item from the data source.
What should you implement in WPMaster?
A. IWebActionableNowadays, 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.