שתף באמצעות


CatalogDefinitionType Enumeration

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

Specifies the catalog definition type.

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

Syntax

'Declaration
Public Enumeration CatalogDefinitionType
'Usage
Dim instance As CatalogDefinitionType
public enum CatalogDefinitionType
public enum class CatalogDefinitionType
public enum CatalogDefinitionType

Members

Member name Description
ProductDefinition The catalog type is product.
CategoryDefinition The catalog type is category.

Remarks

The enumeration is a value for the name of a Catalog definition type for a particular entity. The value represents a type of definition (product or category).

Examples

// This example shows how to retrieve all the properties in all the category definitions in the catalog system.

private void GetDefinitionProperties(CatalogContext catalogContext)
{
  CatalogDefinitionPropertiesDataSet catalogDefinitionProperties = catalogContext.GetDefinitionProperties(CatalogDefinitionType.CategoryDefinition);
  foreach(CatalogDefinitionPropertiesDataSet.CatalogDefinitionProperty catalogDefinitionProperty in catalogDefinitionProperties.CatalogDefinitionProperties)
  {
    string definitionName = catalogDefinitionProperty.DefinitionName;
    string propertyName = catalogDefinitionProperty.PropertyName;
  }
}

See Also

Reference

Microsoft.CommerceServer.Catalog Namespace