Share via


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

    A string that specifies the name for the category.

  • propset
    Type: System.Guid

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

See also

Reference

CategoryCollection class

CategoryCollection members

Microsoft.Office.Server.Search.Administration namespace