다음을 통해 공유


DefinitionType Property

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

Gets the definition type of the current instance.

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

Syntax

'Declaration
Public ReadOnly Property DefinitionType As CatalogDefinitionType
'Usage
Dim instance As CatalogDefinition
Dim value As CatalogDefinitionType

value = instance.DefinitionType
public CatalogDefinitionType DefinitionType { get; }
public:
property CatalogDefinitionType DefinitionType {
    CatalogDefinitionType get ();
}
public function get DefinitionType () : CatalogDefinitionType

Property Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogDefinitionType
The definition type of the current instance.

Remarks

Retrieves a definition (product or category) from the catalog system. The CatalogDefinitionType is either a Product (ProductDefinition = 0) or a Category (CategoryDefinition = 1).

Product definitions describe the products in your catalog that you sell. Product definitions determine the type of information that you will store and retrieve for each class of item that you sell. For example, because the critical data about shirts differs from the information that you keep for shoes, you must design different product schemas for each unique class of items that you sell.

Category definitions describe the categories in your catalog. A category can have one or more properties, such as name, description, and image. The properties for the category define what you can use to display on the pages of your site or items for which your customers can search when perusing the site. These properties are defined in the category definition. For example, if you want to store information about manufacturers, and then organize products by manufacturer, you can create a Manufacturer category definition, which would include different properties, such as Manufacturer Name, Country/Region, Address, and Contact Person.

Permissions

See Also

Reference

CatalogDefinition Class

CatalogDefinition Members

Microsoft.CommerceServer.Catalog Namespace