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
- PropertyName
Type: System..::.String
The name of the property to add.
- PropertyValue
Type: System..::.String
The value of the property that has been added.
- Language
Type: System..::.String
The Language for the enumeration value.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValuesDataTable Class
CatalogEnumerationPropertyValuesDataSet..::.EnumerationPropertyValuesDataTable Members