Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Category Class

Represents a category in the SharePoint Server search metadata property schema.

System.Object
  Microsoft.Office.Server.Search.Administration.Category

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class Category

In the SharePoint Server search schema, crawled properties are grouped into different categories, representing the protocol used.

Use the AllCategories property of the Schema class to get the collection of property categories in the Search service application’s schema.

Use an indexer to return a single managed property from the CategoryCollection object.

For example, assuming the collection is assigned to a variable named categories, use categories[index] in Microsoft Visual C# or categories(index) in Microsoft Visual Basic, where index is a string containing the name of the category or a GUID identifying the property set for the category.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.