For Babelfish Release 1.11.1.3

AttributeValueSetFieldValue(String, Object) Method

Set Attribute Value for Field Name

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
)

Parameters

fieldName  String
Field Name to set
fieldValue  Object
Field Value to set

Exceptions

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

See Also