Share via


CreateFromConnectionString Method

NOTE: This API is now obsolete. The non-obsolete alternative is [A M:Microsoft.CommerceServer.Catalog.CatalogContext.Create(Microsoft.CommerceServer.Catalog.CatalogSiteAgent) object.].

(Obsolete) CatalogContext should not be created from connection string, use Create instead. Creates and returns an instance of the CatalogContext object from the specified connection and context.

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

Syntax

'Declaration
<ObsoleteAttribute("CatalogContext should not be created from connection string, use CatalogContext.Create instead.")> _
Public Shared Function CreateFromConnectionString ( _
    connectionString As String, _
    debugContext As DebugContext _
) As CatalogContext
'Usage
Dim connectionString As String
Dim debugContext As DebugContext
Dim returnValue As CatalogContext

returnValue = CatalogContext.CreateFromConnectionString(connectionString, _
    debugContext)
[ObsoleteAttribute("CatalogContext should not be created from connection string, use CatalogContext.Create instead.")]
public static CatalogContext CreateFromConnectionString(
    string connectionString,
    DebugContext debugContext
)
[ObsoleteAttribute(L"CatalogContext should not be created from connection string, use CatalogContext.Create instead.")]
public:
static CatalogContext^ CreateFromConnectionString(
    String^ connectionString, 
    DebugContext^ debugContext
)
public static function CreateFromConnectionString(
    connectionString : String, 
    debugContext : DebugContext
) : CatalogContext

Parameters

  • connectionString
    Type: System..::.String
    A connection string to the catalog database.

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogContext
An instance of the CatalogContext object.

Remarks

This method should not be used; it has been replaced by Create.

Permissions

See Also

Reference

CatalogContext Class

CatalogContext Members

Microsoft.CommerceServer.Catalog Namespace