Which code segment would you put a line 3?

You have a custom windows form application. You plan to create a feature that will perform a key word search of a SharePoint site. You create a feature that contains the following code:

01: Dim keyWordString as String = “Microsoft”
02: dim queryXMLString as String = (“<QueryPacket xmlns =
‘urn:Microsoft.Certs.Query’>”&
03: …
04: QuerySearch
05: Dim queryService as New QueryWebServiceProxy.QueryService()
06: queryService.Credentials = System.Net.CredentialsClass.DefaultCredentials
07: Dim queryResults as System.Data.DataSet =
queryService.QueryEx(queryXMLString)
08 ResultsGridView.DataSource = queryResults.Tables(0)

You need to ensure that the search returns valid results.

Which code segment would you put a line 3?

You have a custom windows form application. You plan to create a feature that will perform a key word search of a SharePoint site. You create a feature that contains the following code:

01: Dim keyWordString as String = “Microsoft”
02: dim queryXMLString as String = (“<QueryPacket xmlns =
‘urn:Microsoft.Certs.Query’>”&
03: …
04: QuerySearch
05: Dim queryService as New QueryWebServiceProxy.QueryService()
06: queryService.Credentials = System.Net.CredentialsClass.DefaultCredentials
07: Dim queryResults as System.Data.DataSet =
queryService.QueryEx(queryXMLString)
08 ResultsGridView.DataSource = queryResults.Tables(0)

You need to ensure that the search returns valid results.

Which code segment would you put a line 3?

A.
“<Query> <Context> <QueryText Language=’EN-US’ Type=’String’>”) + keyWordString + “</QueryText> </Context> </Query> </QueryPacket>”

B.
“<Query> <QueryText Language=’EN-US’ Type=’String’>”) + keyWordString & “</QueryText> </Query> </QueryPacket>”

C.
“<Query> <QueryContext> <QueryText Language=’EN-US’ Type=’String’>”) + keyWordString & “</QueryText> </QueryContext> </Query> </QueryPacket>”

D.
“<KeyWord>”) + keyWordString & “</KeyWord></Query><QueryPackets>”



Leave a Reply 0

Your email address will not be published. Required fields are marked *