70-573 · Question #100
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…
The correct answer is B. ManagedPropertyCollection properties = schema.AllManagedProperties. MNEMONIC RULE: "properties.Create()" Use the AllManagedProperties property of the Schema class to get the collection of managed properties inthe Shared Service Provider's search schema. To add a new managed property to the collection, use the Create() method…
Question
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. 02 SearchContext context = SearchContext.GetContext(currentSite); 03 Schema schema = new Schema(context); Which code segment should you add to the application?
Options
- Acontext.SearchApplication.CrawlStores.Create(args[1]);
- BManagedPropertyCollection properties = schema.AllManagedProperties;
- CManagedPropertyCollection properties = schema.AllManagedProperties;
- Dschema.AllCategories.Create(args[1], Guid.NewGuid());
How the community answered
(40 responses)- A3% (1)
- B73% (29)
- C8% (3)
- D18% (7)
Explanation
MNEMONIC RULE: "properties.Create()" Use the AllManagedProperties property of the Schema class to get the collection of managed properties inthe Shared Service Provider's search schema. To add a new managed property to the collection, use the Create() method. ManagedPropertyCollection Class us/library/microsoft.office.server.search.administration.managedpropertycollection.create.aspx
Topics
Community Discussion
No community discussion yet for this question.