CategoryCollection.Create Method
Adds a new category to the category collection.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public 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)
public Category Create(
string name,
Guid propset
)
Parameters
name
Type: System.StringA string that specifies the name for the category.
propset
Type: System.GuidA GUID that identifies the category's property set.
Return Value
Type: Microsoft.Office.Server.Search.Administration.Category
A Category object that represents the category to add to the collection.