Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
Exam
: Microsoft 70-542VB
Title
: MS Office SharePoint Server
2007.Application
Development
Version : Demo
Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
1. You create a Microsoft Office InfoPath workflow task form for users. The form contains all the details of
each task.
You need to store the value of the Comments field in a variable named UserInput when each user submits
the form.
Which code segment should you use?
A. Dim UserInput As String = New String
Dim wpTProps As SPWorkflowTaskProperties = New _
SPWorkflowTaskProperties
...
UserInput = wpTProps.ExtendedProperties("Comments").ToString
B. Private wpAProps As SPWorkflowActivationProperties = New _
SPWorkflowActivationProperties
...
Private UserInput As Object = wpAProps.Item.Fields("Comments")
C. Private wpAProps As SPWorkflowActivationProperties = New _
SPWorkflowActivationProperties
Private serializer As XmlSerializer = New _
XMLSerializer(GetType(MyFields))
Private reader As xmlTextReader = New XMLTextReader(New _
System.IO.StringReader(wpAProps.InitiationData))
Private fields As MyFields = serializer.Deserialize(reader)
Private UserInput As String = fields.Users(i).Comments
D. Private serializer As XmlSerializer = New _
XmlSerializer(GetType(InitForm))
Private reader As XmlTextReader = New XmlTextReader(New _
System.IO.StringReader(workflowProps.InitiationData))
Private initform As InitForm = _
CType(serializer.Deserialize(reader), InitForm)
Private UserInput As String = initform.comments
Answer: A
Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
2. You are creating a Microsoft Office SharePoint Server 2007 application to increase the search capability
of five site collections that belong to a single farm.
You need to retrieve all available search contexts for the Web site collection on which the application is
initiated.
Which code segment should you u