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
- 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.