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
- catalogName
Type: System..::.String
The name of the catalog to query.
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
- 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.