CatalogManager3.RebuildAllVirtualCatalogs Method (PIA)
Use this method to rebuild all the virtual catalogs in the Product Catalog System.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Catalog
…
Public Sub RebuildAllVirtualCatalogs(OptionalfRunSynchronously As Boolean,
OptionalfForceRebuild As Boolean)
[C#]
using Microsoft.CommerceServer.Interop.Catalog;
…
public void RebuildAllVirtualCatalogs(bool fRunSynchronously,
bool fForceRebuild);
Parameters
[Visual Basic .NET]
- fRunSynchronously
A Boolean that specifies whether to run the method synchronously. A value of True indicates that the method should be run synchronously. A value of False indicates that the method should be run asynchronously. The default value is False. - fForceRebuild
A Boolean that specifies whether to force a rebuild. A value of True indicates that all catalogs will be rebuilt. A value of False indicates that only dirty catalogs will be rebuilt. The default value is False.
[C#]
- fRunSynchronously
A bool that specifies whether to run the method synchronously. A value of True indicates that the method should be run synchronously. A value of False indicates that the method should be run asynchronously. - fForceRebuild
A bool that specifies whether to force a rebuild. A value of True indicates that all catalogs will be rebuilt. A value of False indicates that only dirty catalogs will be rebuilt.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
The following table shows the custom COM errors that a COMException can wrap.
Name | Value | Description |
---|---|---|
E_CAT_CATMGR_NOT_INITIALIZED | [C#] 0x889800B5 [Visual Basic .NET] &H889800B5 |
The CatalogManager object has not been initialized. The CatalogManager object should be initialized before calling this method. |
Remarks
Virtual catalogs will be rebuilt only if there has been a rule change, a product deletion, or a category deletion that would affect the contents of the catalog unless the fForceRebuild parameter is set to True*.*
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.