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 |
Type Library Name: | Microsoft Commerce 2000 Catalog Type Library |
DLL Name: | Catalog.dll |
Threading Model: | Both |
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 | 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. |
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. |
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 reference to it by accessing the following properties: