CategoryCollection.Create Method
Add a new category to the crawled property category collection.
Namespace: Microsoft.SharePoint.Search.Extended.Administration.Schema
Assembly: Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)
Syntax
'Declaration
Function Create ( _
name As String, _
propset As Guid _
) As Category
'Usage
Dim instance As CategoryCollection
Dim name As String
Dim propset As Guid
Dim returnValue As Category
returnValue = instance.Create(name, propset)
Category Create(
string name,
Guid propset
)
Parameters
name
Type: System.StringA string that specifies the name of the category.
propset
Type: System.GuidA GUID that specifies the property set of the category.
Return Value
Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.Category
A Category object that represents the created category.
Exceptions
Exception | Condition |
---|---|
AdminException | If the category already exists or if its property set is already mapped to another category. |
See Also
Reference
Microsoft.SharePoint.Search.Extended.Administration.Schema Namespace