Associating Additional Information with Catalog Properties

You can use the AddPropertyAttribute method of the CatalogManager object to add user-defined property attributes. You can also add an AttributeDefinition element in the XML file to create user-defined property attributes by importing an XML file.

Following is a sample XML file in which the AttributeDefinition element is used:

<?xml version="1.0" ?> 
-    <MSCommerceCatalogCollection2 version="2.0">
-       <CatalogSchema>
<AttributeDefinition Name="Unitofmeasure" dataType="string" 
maxlength="20" />         
<PropertyName =”myproperty” datatype = “string” Unitofmeasure=”lbs”/>
  </CatalogSchema>
  </MSCommerceCatalogCollection2>

Copyright © 2005 Microsoft Corporation.
All rights reserved.