Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
Exam
: Microsoft 70-542CSharp
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. String UserInput = new String();
SPWorkflowTaskProperties wpTProps =
new SPWorkflowTaskProperties();
...
UserInput = wpTProps.ExtendedProperties["Comments"].ToString();
B. SPWorkflowActivationProperties wpAProps =
new SPWorkflowActivationProperties();
...
object UserInput = wpAProps.Item.Fields["Comments"];
C. SPWorkflowActivationProperties wpAProps =
new SPWorkflowActivationProperties();
XmlSerializer serializer = new XMLSerializer(typeof(MyFields));
xmlTextReader reader = new XMLTextReader
(new System.IO.StringReader(wpAProps.InitiationData));
MyFields fields = serializer.Deserialize(reader);
String UserInput = fields.Users[i].Comments;
D. XmlSerializer serializer = new XmlSerializer(typeof(InitForm));
XmlTextReader reader = new XmlTextReader
(new System.IO.StringReader(workflowProps.InitiationData));
InitForm initform = (InitForm) serializer.Deserialize(reader);
String UserInput = initform.comments;
Answer: A
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.
Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
You need to retrieve all available search contexts for the Web site collection on which the application is
initiated.
Which code segment should you use?
A. string strSite = "http: //yourSiteName";
SearchContext srchContext =
SearchContext.GetContext(new SPSite(strSite));
B. Sea