GetRootCategory Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Retrieve the catalog root category. This category contains all products and categories not included in other categories.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function GetRootCategory As Category
'Usage
Dim instance As ProductCatalog
Dim returnValue As Category
returnValue = instance.GetRootCategory()
public Category GetRootCategory()
public:
Category^ GetRootCategory()
public function GetRootCategory() : Category
Return Value
Type: Microsoft.CommerceServer.Catalog..::.Category
A Category object representing the root category for this catalog.
Remarks
This method is equivalent to GetCategory(“”)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.