GetCatalogs Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Returns a CatalogsDataSet containing all the catalogs in the Catalog System and their associated information.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function GetCatalogs As CatalogsDataSet
'Usage
Dim instance As CatalogContext
Dim returnValue As CatalogsDataSet
returnValue = instance.GetCatalogs()
public CatalogsDataSet GetCatalogs()
public:
CatalogsDataSet^ GetCatalogs()
public function GetCatalogs() : CatalogsDataSet
Return Value
Type: Microsoft.CommerceServer.Catalog..::.CatalogsDataSet
Returns a CatalogsDataSet containing all the catalogs in the Catalog System and their associated information. The returned DataSet contains display names in all languages as columns with names formatted as <DisplayName>_<LANGUAGE>. To access the language-specific display name, you need to access that column. When using a catalog object in your code, the column corresponds to the DisplayName field, which has an ActiveLanguage field.
Remarks
The display names for the catalogs in the CatalogsDataSet will be in the CurrentUICulture of the catalog server, parent of CurrentUICulture or will be empty if none of the languages exist in the catalog system.
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.