Jaa


GetRootCategory Method (String)

Get the root category object for this catalog. The root category contains the list of all products and categories not contained in other categories.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Function GetRootCategory ( _
    catalogName As String _
) As Category
'Usage
Dim instance As CatalogContext
Dim catalogName As String
Dim returnValue As Category

returnValue = instance.GetRootCategory(catalogName)
public Category GetRootCategory(
    string catalogName
)
public:
Category^ GetRootCategory(
    String^ catalogName
)
public function GetRootCategory(
    catalogName : String
) : Category

Parameters

Return Value

Type: Microsoft.CommerceServer.Catalog..::.Category
A Category object describing the root category of catalog catalogName.

Remarks

Retrieves a category object which represents the “root” category. This category cannot be modified. The root category will not be a member of any collection and has no parent category. The GetRootCategory(catalogName) is the same as GetCategory(catalogName, String.Empty) method.

Permissions

See Also

Reference

CatalogContext Class

CatalogContext Members

GetRootCategory Overload

Microsoft.CommerceServer.Catalog Namespace