CatalogContext.GetCatalog (String) Method (BCL)

Use this method to get the ProductCatalog object for the catalog with the specified name.

[Visual Basic .NET]

Overridable Public Function GetCatalog( _ByValcatalogName As System.String _
) As ProductCatalog

[C#]

public virtual ProductCatalog GetCatalog(System.StringcatalogName);

Parameters

[Visual Basic .NET]

  • catalogName
    The name of the catalog. May not be null.

[C#]

  • catalogName
    The name of the catalog. May not be null.

Return Value

The specified ProductCatalog object.

Remarks

When used in the context of the Commerce Server 2002 .NET Framework, a ProductCatalog object is valid only for the request on which it was created. It will be automatically disposed in the OnEndRequest handler. Throws an ArgumentNullException if the catalogName parameter is null. Throws a CatalogNotFoundException if the catalog does not exist. Sets the ActiveLanguage of the ProductCatalog object to the CultureInfo.CurrentUICulture. If the catalog does not support this language, then the ProductCatalog.ActiveLanguage defaults to the default language of the catalog.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.