CatalogContext.CreateFromConnectionString (String, DebugContext) Method (BCL)
Use this method to create a CatalogContext object that will run against the catalog database specified in the ADO connection string.
[Visual Basic .NET]
Public Shared Function CreateFromConnectionString( _ByValconnectionString As System.String, _
ByValdbgContext As DebugContext _
) As CatalogContext
[C#]
public static CatalogContext CreateFromConnectionString(System.StringconnectionString,
DebugContextdbgContext);
Parameters
[Visual Basic .NET]
- connectionString
The ADO connection string. May not be null. - dbgContext
The DebugContext object. May not be null.
[C#]
- connectionString
The ADO connection string. May not be null. - dbgContext
The DebugContext object. May not be null.
Remarks
Throws an ArgumentNullException if either the connectionString or the dbgContext parameter is null. Throws a CatalogInitializationException if initialization of the CatalogManager object fails.
Requirements
Namespace: Microsoft.CommerceServer.Runtime.Catalog
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
Copyright © 2005 Microsoft Corporation.
All rights reserved.