You create a Microsoft Office InfoPath 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 the user submits the form.
Which code segment should you use?
A.
Dim userInput as String = New String
dim wptProp as WorkflowTaskProperties = New SPWorkflowTaskProperties …
userInput = wptProp.ExtendedProperties(“Comments”).ToString
B.
Private wpAProps as SharePointWorkflowUpdatedUseProperties = New SPWorkflowActivitiesProperties Dim userInput as Object = wpAProps.Item.Fields(“Comments”)
C.
Private wpAProps as New SPWorkflowActivitiesProperties
Private serializer as XMLSerializer = New XMLSerializer(GetType(myField)) Private reader as XMLTextReader = New XMLTextReader(New
System.IO.StringReader(wpAProps.XMLSerializationData))
Private fields as myFields = serializer.Deserialize(reader)
Private userInput as String = fields.User(i).Comments
D.
Private serializer as XMLSerializer = New XMLSerializer(GetType(Unit form)) Private reader as XMLTextReader = New TextReader(New
System.IO.StringReader(wpAProps.XMLSerializationData))
Private initForm as InitForm = CType(Serializer.Deserialize(reader), initForm) Private userInput as String = initForm.Comment