Share via


CatalogDefinition Class

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

Provides properties and methods to manage catalog and category definitions.

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

Syntax

'Declaration
Public NotInheritable Class CatalogDefinition _
    Inherits CatalogObject
'Usage
Dim instance As CatalogDefinition
public sealed class CatalogDefinition : CatalogObject
public ref class CatalogDefinition sealed : public CatalogObject
public final class CatalogDefinition extends CatalogObject

Remarks

Manage the catalog and category definition through this class.

Examples

CatalogDefinition definition = null;
definition = catalogContext.CreateDefinition(definitionName, CatalogDefinitionType.ProductDefinition);
// Once the definition has been  created set the description
definition.Description = description;
definition.Save();
/* Once a definition is created the properties can be added to the definition 
  When adding properties to a product definition the DefinitionPropertyType can be
 DefinitionPropertyType.NormalProperty and DefinitionPropertyType.VariantProperty.
*/
definition.AddProperty(propertyToAddtoDefinition, DefinitionPropertyType.NormalProperty);
definition.Save();

Inheritance Hierarchy

System..::.Object
  Microsoft.CommerceServer.Catalog..::.CatalogObjectBase
    Microsoft.CommerceServer.Catalog..::.CatalogObject
      Microsoft.CommerceServer.Catalog..::.CatalogDefinition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CatalogDefinition Members

Microsoft.CommerceServer.Catalog Namespace