PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 70-573 (update October 30th, 2015)

Exam 70-573: TS: Microsoft SharePoint 2010, Application Development (update October 30th, 2015)

Which code segments should you add at lines 07 and 08?

You have the following event receiver. (Line numbers are included for reference only.) 01 public
override void FieldDeleting(SPListEventProperties properties) 02 { 03
base.FieldDeleting(properties); 04 05 if (properties.FieldName == “Status”) 06 { 07 08 09 } 10 }
You need to cancel the operation and redirect the user to a custom error page if the name of the
deleted field is Status. Which code segments should you add at lines 07 and 08?

Which code segments should you add at lines 04 and 05?

You are creating an event receiver. The event receiver will have a field named Title and a field
named Priority. You write the following code segment for the event receiver. (Line numbers are
included for reference only.) 01 public override void ItemUpdating ( SPItemEventProperties prop)
02 { 03 base.ItemUpdating (prop); 04 05 06 } You need to ensure that when the Title field is
changed to include the word IMPORTANT, the Priority field is set to URGENT. Which code
segments should you add at lines 04 and 05?

What should you add to the schema of the action?

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. < Workflowlnfo> <Actions
Sequential=”then” Parallel=”and”> <Action Name=”Create Sice” ClassName =”
SPDActivityDemo.Createsite ” Assembly=” SPDActivityDemo , Version=l.0.0.0, Culture=neutral,
PublicKeyToken= Ia4a7a2c3215a71b ” AppliesTo =”all” Category=”Test”> <Parameters>
<Parameter Name=”Url” Type=” System.String , mscorlib ” Direction=”Inr’ /> <Parameters>
</Action> </Actions> </ Workflowlnfo > 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?

Which code segment should you add to the application?

You need to create a custom application that provides users with the ability to create a managed
property. The managed property name must be specified in the args [1] parameter. You write the
following code segment for the application. 01 SPSite currentSite = new SPSite(“http://intranet”);
02 SearchContext context = SearchContext.GetContext(currentSite); 03 Schema schema = new
Schema(context); Which code segment should you add to the application?


Page 10 of 24« First...89101112...20...Last »