GetRootCategory Method (CategoryConfiguration)
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 ( _
config As CategoryConfiguration _
) As Category
'Usage
Dim instance As ProductCatalog
Dim config As CategoryConfiguration
Dim returnValue As Category
returnValue = instance.GetRootCategory(config)
public Category GetRootCategory(
CategoryConfiguration config
)
public:
Category^ GetRootCategory(
CategoryConfiguration^ config
)
public function GetRootCategory(
config : CategoryConfiguration
) : Category
Parameters
- config
Type: Microsoft.CommerceServer.Catalog..::.CategoryConfiguration
A CategoryConfiguration object describing the initial loaded properties of the 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.