Create Method (CatalogSiteAgent, CacheConfiguration)
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Creates an instance of the CatalogContext object from the specified site agent.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Shared Function Create ( _
catalogSiteAgent As CatalogSiteAgent, _
cacheConfiguration As CacheConfiguration _
) As CatalogContext
'Usage
Dim catalogSiteAgent As CatalogSiteAgent
Dim cacheConfiguration As CacheConfiguration
Dim returnValue As CatalogContext
returnValue = CatalogContext.Create(catalogSiteAgent, _
cacheConfiguration)
public static CatalogContext Create(
CatalogSiteAgent catalogSiteAgent,
CacheConfiguration cacheConfiguration
)
public:
static CatalogContext^ Create(
CatalogSiteAgent^ catalogSiteAgent,
CacheConfiguration^ cacheConfiguration
)
public static function Create(
catalogSiteAgent : CatalogSiteAgent,
cacheConfiguration : CacheConfiguration
) : CatalogContext
Parameters
- catalogSiteAgent
Type: Microsoft.CommerceServer.Catalog..::.CatalogSiteAgent
A CatalogSiteAgent which specifying the options used to construct a new CatalogContext object.
- cacheConfiguration
Type: Microsoft.CommerceServer.Catalog..::.CacheConfiguration
A CacheConfiguration which specifies the caching options for this catalog context.
Return Value
Type: Microsoft.CommerceServer.Catalog..::.CatalogContext
An instance of the CatalogContext object.
Remarks
The CatalogContext class contains the functionality to manage the catalog and inventory systems.
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.