Product Object
Use this object to work with products and variants in a catalog.
ProgID: | Dependent (See Remarks for more information) |
COM Class Name: | Product |
COM Interface Name: | IProduct |
Interface ID Constant: | IID_IProduct |
Header File: | Catalog.h, mspu_guids.h |
Type Library Name: | Microsoft Commerce 2000 Catalog Type Library |
DLL Name: | Catalog.dll |
Threading Model: | Both |
In C++, use the IProduct 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.
The properties of the Product object are shown in the following table.
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. |
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. |
Variants | _Recordset | Contains a recordset that describes all of the variants of this product, if any.
This property is read-only. |
The methods of the Product object are shown in the following table.
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. |
SetVariantProperties | Sets the properties for variants of this product. |
Remarks
The Product object is a dependent object. Obtain a pointer to the IProduct interface by calling one of the following methods: