Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

Saves a property back to the process.


Code Block
public void SaveProperty(dynamic property);

Classes: Properties


Parameters

dynamic property

Dynamic property object.


Example

The following example demonstrates changing the value of a property returned from the GetPropertyByName method, and then saving it back.

Code Block
var property = Process.Properties.GetPropertyByName("Name");
property.Value = "John";
Process.Properties.SaveProperty(property);

Remarks

If you have made changes that do not conform to the managed property object, this method will throw a serialization exception.