For Babelfish Release 1.11.1.3

AttributeValueSetFieldValue(String, Object, String) Method

Set Attribute Value for Field Name with Field Key

Definition

Namespace: Scopos.BabelFish.DataModel.AttributeValue
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public void SetFieldValue(
	string fieldName,
	Object fieldValue,
	string fieldKey
)

Parameters

fieldName  String
Field Name to set
fieldValue  Object
Field value to set
fieldKey  String
Field Key to set

Exceptions

AttributeValueExceptionThrown if the user tries to call this function on a Attribute that has MultipleValues set to false. User should instead call the overloaded SetFieldValue with two parameters (not including the fieldKey).
AttributeValueValidationExceptionThrown if the fieldValue is either the wrong type or the value does not pass validation.

See Also