Partager via


CreateCatalogContext Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Creates the singleton instance of CatalogContext for use on the site.

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

Syntax

'Declaration
Public Shared Function CreateCatalogContext As CatalogContext
'Usage
Dim returnValue As CatalogContext

returnValue = CommerceCatalogModule.CreateCatalogContext()
public static CatalogContext CreateCatalogContext()
public:
static CatalogContext^ CreateCatalogContext()
public static function CreateCatalogContext() : CatalogContext

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogContext
A CatalogContext instance

Remarks

To create a CatalogContext, this method reads the catalog configuration from web.config.

Permissions

See Also

Reference

CommerceCatalogModule Class

CommerceCatalogModule Members

Microsoft.CommerceServer.Runtime.Catalog Namespace