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.)

Which code segment should you add to the application?
A. context.SearchApplication.CrawlStores.Create(args[1]);
B. ManagedPropertyCollection properties = schema.AllManagedProperties;
ManagedProperty newMng = properties.Create(args[1], ManagedDataType.Text);
C. ManagedPropertyCollection properties = schema.AllManagedProperties;
ManagedProperty newMng = properties.CreateCrawlMonProperty();
newMng.Name = args[1];
D. schema.AllCategories.Create(args[1], Guid.NewGuid());

microsoft-exams

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.