Product Class (BCL)

Represents a product in a product catalog. A Product object should be referenced only on the page in which it was created.

System.Object
**** Microsoft.CommerceServer.Runtime.Catalog.Product

Protected Instance Constructor

Constructor Description
Product Constructor(ProductCatalog, String) Creates a new instance of the Product class.

 

Public Instance Methods

Method Description
Dispose Releases the resources used by this object.
GetProductProperties Gets the properties for the product.
GetRelatedCategories Gets the category relationships for this product.
GetRelatedProducts Gets the product relationships for this product.
GetVariantProperties(Object) Returns the properties for a specific product variant of this product.
GetVariants(CatalogSearchOptions) Returns the properties for all product variants of this product in the sort order specified in the searchOptions parameter.
GetVariants Returns the properties for all product variants of this product in the sort order specified in the searchOptions parameter.

 

Public Instance Properties

Property Description
AncestorCategoryNames Gets the names of all categories that are above this product in the category hierarchy.
CanonicalCategoryPath Gets the names of the categories that form a canonical path to this product. The first element in the array is a child of the "root" category. The canonical path of any category is formed by looking up the primary parent of this category, the primary parent of that category, and so on until the root of the hierarchy is reached.
CatalogContext Gets the CatalogContext object that was used to create the ProductCatalog object to which this Product object belongs.
DebugContext Gets the DebugContext object for the CatalogContext object that was used to create the ProductCatalog object for the catalog that contains this product.
ParentCategoryNames Gets the names of the categories that are immediate parents of this product in the category hierarchy.
PrimaryParentCategoryName The primary parent category name is cached. Call the CatalogContextRefresh method to explicitly refresh this cached data.
ProductCatalog Gets the ProductCatalog object that contains this product.
ProductId Gets the product ID of this product.

Protected Instance Methods

Method Description
CheckState Verifies that the object has not already been disposed.
Dispose(Boolean) Releases the unmanaged resources used by this object and optionally releases the managed resources.

 

Remarks

There is no public constructor for the Product object.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.