Product Object [C++]

Use this object to work with products and variants in a catalog.

ProgID:   Dependent (See Remarks for more information)
COM Class Name:   Product
Type Library Name:   Microsoft Commerce 2002 Catalog Type Library v1.3
DLL Name:   Catalog.dll
Threading Model:   Both

[C++]

COM Interface Name:   Iproduct3
Interface ID Constant:   IID_Iproduct3
Header File:   Catalog.h, mspu_guids.h

[C++]

In C++, use the IProduct3 interface to access the properties and methods of the Product object.

Because this object is primarily intended for use within ASP script, access from C++ will not be common.

Methods

[C++]

Method Description
AddRelationshipToCategory Adds a relationship to a specified category from this product.
AddRelationshipToProduct Adds a relationship to another specified product from this product.
CreateVariant Creates a new product variant.
DeleteVariant Deletes a product variant.
GetVariantProperties Returns the properties of a specified product variant.
RemoveRelationshipToCategory Removes the specified relationship between this product and the specified category.
RemoveRelationshipToProduct Removes the specified relationship between this product and the specified product.
SetProductProperties Sets the properties for this product and all its variants.
SetRelatedCategories Updates category relationships.
SetRelatedProducts Updates product relationships.
SetVariantProperties Sets the properties for variants of this product.

[Visual Basic]

Method Description
AddRelationshipToCategory Adds a relationship to a specified category from this product.
AddRelationshipToProduct Adds a relationship to another specified product from this product.
CreateVariant Creates a new product variant.
DeleteVariant Deletes a product variant.
GetVariantProperties Returns the properties of a specified product variant.
RemoveRelationshipToCategory Removes the specified relationship between this product and the specified category.
RemoveRelationshipToProduct Removes the specified relationship between this product and the specified product.
SetProductProperties Sets the properties for this product and all its variants.
SetRelatedCategories Updates category relationships.
SetRelatedProducts Updates product relationships.
SetVariantProperties Sets the properties for variants of this product.

Properties

[C++]

Property Type Description
AncestorCategories _Recordset Contains a recordset of category names that exist anywhere above this product, and that directly or indirectly contain this product in the hierarchy.

This property is read-only.

CatalogName BSTR Contains the name of the catalog of which this Product object is a member.

This property is read-only.

GetProductProperties _Recordset Contains a recordset containing the property values for this product.

This property is read-only.

ParentCategories _Recordset Contains a recordset of categories that directly contain this product.

This property is read-only.

PricingCategory BSTR Contains the name of the pricing category for this product.

This property is read/write.

PrimaryParent BSTR Contains the name of the primary parent category for this product.

This property is read/write.

ProductID BSTR Contains the unique ID for this product.

This property is read-only.

RelatedCategories _Recordset Contains a recordset that describes all of the categories that are related to this product.

This property is read-only.

RelatedProducts _Recordset Contains a recordset that describes all of the products that are related to this product.

This property is read-only.

UseCategoryPricing VARIANT_BOOL Indicates whether the price is derived from the PrimaryParentCategory field.

This property is read/write.

Variants _Recordset Contains a recordset that describes all of the variants of this product, if any.

This property is read-only.

[Visual Basic]

Property Type Description
AncestorCategories Recordset Contains a recordset of category names that exist anywhere above this product, and that directly or indirectly contain this product in the hierarchy.

This property is read-only.

CatalogName String Contains the name of the catalog of which this Product object is a member.

This property is read-only.

GetProductProperties Recordset Contains a recordset containing the property values for this product.

This property is read-only.

ParentCategories Recordset Contains a recordset of categories that directly contain this product.

This property is read-only.

PricingCategory String Contains the name of the pricing category for this product.

This property is read/write.

PrimaryParent String Contains the name of the primary parent category for this product.

This property is read/write.

ProductID BSTR Contains the unique identifier for this product

This property is read-only.

RelatedCategories Recordset Contains a recordset that describes all of the categories that are related to this product.

This property is read-only.

RelatedProducts Recordset Contains a recordset that describes all of the products that are related to this product.

This property is read-only.

UseCategoryPricing Boolean Indicates whether the price is derived from the PrimaryParentCategory field.

This property is read/write.

Variants Recordset Contains a recordset that describes all of the variants of this product, if any.

This property is read-only.

Remarks

[C++]

The Product object is a dependent object. Obtain a pointer to the IProduct3 interface by calling one of the following methods:

[Visual Basic]

The Product object is a dependent object. Obtain a reference to it by accessing the following properties:

Copyright © 2005 Microsoft Corporation.
All rights reserved.