PrepAway - Latest Free Exam Questions & Answers

Which code segment should you add to the application?

You need to create a custom application that provides users with the ability to create a managed
property. The managed property name must be specified in the args[1] parameter. You write the
following code segment for the application. (Line numbers are included for reference only.) 01 Dim
currentSite As New SPSite(“http://intranet”) 02 Dim context As SearchContext =
SearchContext.GetContext(currentSite) 03 Dim schema As New Schema(context) Which code
segment should you add to the application?

PrepAway - Latest Free Exam Questions & Answers

A.
schema.AllCategories.Create(args(1), Guid.NewGuid())

B.
Dim properties As ManagedPropertyCollection = schema.AllManagedProperties Dim newMng
As ManagedProperty = properties.CreateCrawlMonProperty() newMng.Name = args(1)

C.
context.SearchApplication.CrawlStores.Create(args(1))

D.
Dim properties As ManagedPropertyCollection = schema.AllManagedProperties Dim newMng
As ManagedProperty = properties.Create(args(1), ManagedDataType.Text)


Leave a Reply