Create Method (CatalogSiteAgent, DebugContext)
NOTE: This API is now obsolete. The non-obsolete alternative is [A M:Microsoft.CommerceServer.Catalog.CatalogContext.Create(Microsoft.CommerceServer.Catalog.CatalogSiteAgent) object.].
(Obsolete) DebugContext has been deprecated; Use Create without a debug context instead. Creates and returns an instance of the CatalogContext object from the specified site agent and context.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
<ObsoleteAttribute("DebugContext has been deprecated, please use CatalogContext.Create without a debug context.")> _
Public Shared Function Create ( _
catalogSiteAgent As CatalogSiteAgent, _
debugContext As DebugContext _
) As CatalogContext
'Usage
Dim catalogSiteAgent As CatalogSiteAgent
Dim debugContext As DebugContext
Dim returnValue As CatalogContext
returnValue = CatalogContext.Create(catalogSiteAgent, _
debugContext)
[ObsoleteAttribute("DebugContext has been deprecated, please use CatalogContext.Create without a debug context.")]
public static CatalogContext Create(
CatalogSiteAgent catalogSiteAgent,
DebugContext debugContext
)
[ObsoleteAttribute(L"DebugContext has been deprecated, please use CatalogContext.Create without a debug context.")]
public:
static CatalogContext^ Create(
CatalogSiteAgent^ catalogSiteAgent,
DebugContext^ debugContext
)
public static function Create(
catalogSiteAgent : CatalogSiteAgent,
debugContext : DebugContext
) : CatalogContext
Parameters
- catalogSiteAgent
Type: Microsoft.CommerceServer.Catalog..::.CatalogSiteAgent
A CatalogSiteAgent object which contains the site name to connect the Catalog Web service.
- debugContext
Type: Microsoft.CommerceServer.Runtime.Diagnostics..::.DebugContext
A DebugContext containing the debug context to use.
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.