AddEnumerationPropertyValue Method (String, String, String, Int32)

Add an enumeration value to this enumeration and return a CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValue.

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

Syntax

'Declaration
Public Function AddEnumerationPropertyValue ( _
    PropertyName As String, _
    PropertyValue As String, _
    Language As String, _
    Rank As Integer _
) As CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValue
'Usage
Dim instance As CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValuesDataTable
Dim PropertyName As String
Dim PropertyValue As String
Dim Language As String
Dim Rank As Integer
Dim returnValue As CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValue

returnValue = instance.AddEnumerationPropertyValue(PropertyName, _
    PropertyValue, Language, Rank)
public CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValue AddEnumerationPropertyValue(
    string PropertyName,
    string PropertyValue,
    string Language,
    int Rank
)
public:
CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValue^ AddEnumerationPropertyValue(
    String^ PropertyName, 
    String^ PropertyValue, 
    String^ Language, 
    int Rank
)
public function AddEnumerationPropertyValue(
    PropertyName : String, 
    PropertyValue : String, 
    Language : String, 
    Rank : int
) : CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValue

Parameters

  • PropertyValue
    Type: System..::.String
    The value of the property that has been added.
  • Rank
    Type: System..::.Int32
    The rank of the enumeration value (for sequencing).

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValue
A CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValue containing the added enumerationpropertyvalue.

Remarks

Prioritizing, ordering, or sequencing may involve using the Rank parameter. Positive and negative rank values are allowed in the catalog system.

The enumeration object must be saved before these changes will be persisted to the database.

Permissions

See Also

Reference

CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValuesDataTable Class

CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValuesDataTable Members

AddEnumerationPropertyValue Overload

Microsoft.CommerceServer.Catalog Namespace