Share via


CatalogEnumerationPropertyValuesDataSet.EnumerationPropertyValue Class

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

Allows access to CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValuesDataTable table.

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

Syntax

'Declaration
Public Class EnumerationPropertyValue _
    Inherits DataRow
'Usage
Dim instance As CatalogEnumerationPropertyValuesDataSet.EnumerationPropertyValue
public class EnumerationPropertyValue : DataRow
public ref class EnumerationPropertyValue : public DataRow
public class EnumerationPropertyValue extends DataRow

Remarks

Gets and sets the values in the CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValuesDataTable table.

Examples

// Create the property 
property = (CatalogEnumerationProperty)catalogContext.CreateProperty(propertyName, CatalogDataType.Enumeration, 0);
// Add values for the enumeration property. The language should be specified only if the 
// property is language sensitive. You can also assign a rank to each of the enumeration values
int rank = 0;
property.AddEnumerationPropertyValue("Small", rank);
property.AddEnumerationPropertyValue("Big", ++rank);
property.AddEnumerationPropertyValue("Large", ++rank);
property.AddEnumerationPropertyValue("Extra Large", ++rank);
// Call property.Save to Save the changes to the catalog system
property.Save();
// Accessing the enumeration values
foreach (CatalogEnumerationPropertyValuesDataSet.EnumerationPropertyValue enumValue in property.EnumerationValues.EnumerationPropertyValues)
{
  Console.WriteLine(enumValue.PropertyName);
  Console.WriteLine(enumValue.PropertyValue);
  Console.WriteLine(enumValue.Rank);
}
 

Inheritance Hierarchy

System..::.Object
  System.Data..::.DataRow
    Microsoft.CommerceServer.Catalog..::.CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValue

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

CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValue Members

Microsoft.CommerceServer.Catalog Namespace