/// <summary> /// Sets the value of this object, using the specified evaluation options /// </summary> /// <param name='value'> /// The value /// </param> /// <param name='options'> /// The options /// </param> /// <exception cref='InvalidOperationException'> /// Is thrown if the value is read-only /// </exception> public void SetValue(string value, EvaluationOptions options) { if (IsReadOnly || source == null) { throw new InvalidOperationException("Value is not editable"); } EvaluationResult res = source.SetValue(path, value, options); if (res != null) { this.value = res.Value; displayValue = res.DisplayValue; } }
public EvaluationResult SetValue(ObjectPath path, string value, EvaluationOptions options) { return(MtaThread.Run(() => source.SetValue(path, value, options))); }