Which line of code should you add at 04?

You create an application that contains the following code:

01: Using site As New SPSite(“http://contoso.com”)
02: Dim sQuery As New KeywordQuery(site)
03: sQuery.QueryText = String.Format(“prop1:””open~0~”””,”value1″)
04:
05: sQuery.ResultType = ResultType.RelevantResults
06: Dim queryResults As QueryTableCollection = sQuery.Execute()
07: Dim queryResultsTable As ResultTable =
queryResults(ResultType.RelevantResults)
08: Dim queryDataTable As New DataTable()
09: queryDataTable.Load(queryResultsTable, LoadOption.OverwriteChanges)
10: End Using

The application performs a keyword query search on a managed property named Prop1 with a value of Value1. You need to ensure that the search result returns a managed property named Prop2.

Which line of code should you add at 04?

You create an application that contains the following code:

01: Using site As New SPSite(“http://contoso.com”)
02: Dim sQuery As New KeywordQuery(site)
03: sQuery.QueryText = String.Format(“prop1:””open~0~”””,”value1″)
04:
05: sQuery.ResultType = ResultType.RelevantResults
06: Dim queryResults As QueryTableCollection = sQuery.Execute()
07: Dim queryResultsTable As ResultTable =
queryResults(ResultType.RelevantResults)
08: Dim queryDataTable As New DataTable()
09: queryDataTable.Load(queryResultsTable, LoadOption.OverwriteChanges)
10: End Using

The application performs a keyword query search on a managed property named Prop1 with a value of Value1. You need to ensure that the search result returns a managed property named Prop2.

Which line of code should you add at 04?

A.
Rest of answers not available � Use the answer with Select properties string collection

B.

C.

D.



Leave a Reply 0

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