EntityCoreTFieldsSetNewFieldValue Method (Int32, Object, Boolean) |
Note: This API is now obsolete.
Sets the Entity Field on index fieldIndex to the new value value. Marks also the entityfields2 as dirty.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax [ObsoleteAttribute("This method is obsolete, starting with v2.5. Use SetValue() instead",
true)]
protected bool SetNewFieldValue(
int fieldIndex,
Object value,
bool fireChangeEvent
)
<ObsoleteAttribute("This method is obsolete, starting with v2.5. Use SetValue() instead",
true)>
Protected Function SetNewFieldValue (
fieldIndex As Integer,
value As Object,
fireChangeEvent As Boolean
) As Boolean
Parameters
- fieldIndex
- Type: SystemInt32
Index of EntityField2 to set the new value of - value
- Type: SystemObject
Value to set - fireChangeEvent
- Type: SystemBoolean
if set to true, the change event is fired if the value is set, if applicable.
If set to false, the caller is responsible for calling the change event mechanism, recommended is then: PostFieldValueSetAction()
Return Value
Type:
Booleantrue if the value is actually set, false otherwise.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | When fieldIndex is smaller than 0 or bigger than the amount of fields in the fields collection. |
See Also