Udostępnij za pośrednictwem


GetRelatedProducts Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

NOTE: This API is now obsolete.

(Obsolete) GetRelatedProducts should not be used, use GetRelatedCategories instead. Gets the products related to the current catalog item.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use CatalogItem.RelatedProducts instead of CatalogItem.GetRelatedCategories")> _
Public Function GetRelatedProducts As CatalogRelationshipsDataSet
'Usage
Dim instance As CatalogItem
Dim returnValue As CatalogRelationshipsDataSet

returnValue = instance.GetRelatedProducts()
[ObsoleteAttribute("Use CatalogItem.RelatedProducts instead of CatalogItem.GetRelatedCategories")]
public CatalogRelationshipsDataSet GetRelatedProducts()
[ObsoleteAttribute(L"Use CatalogItem.RelatedProducts instead of CatalogItem.GetRelatedCategories")]
public:
CatalogRelationshipsDataSet^ GetRelatedProducts()
public function GetRelatedProducts() : CatalogRelationshipsDataSet

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogRelationshipsDataSet
A CatalogRelationshipsDataSet that contains the related products.

Remarks

The multilingual information for the related products will be in the current ActiveLanguage of the catalog item. The returned dataset will contain all one row for each related product. You can add new product relationships or delete existing product relationships by calling the AddRelationshipToProduct and RemoveRelationshipToProduct methods. If you add or remove relationships you should call the Save method to save the changes to the catalog system

Permissions

See Also

Reference

CatalogItem Class

CatalogItem Members

Microsoft.CommerceServer.Catalog Namespace