/
SaveProperty Method

SaveProperty Method

Saves a property back to the process.

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.

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.

Related content

SaveProcessDynamic Method
SaveProcessDynamic Method
More like this
SetSingleProperty Method
SetSingleProperty Method
More like this
GetPropertyByName Method
GetPropertyByName Method
More like this
GetProcessDynamic Method
GetProcessDynamic Method
More like this
Properties Class
Properties Class
More like this
UpdateProcess Method
UpdateProcess Method
More like this