MyActivity.SetValue(MyActivity.MyPropertyProperty, "new value");
MyActivity.SetValue("MyDynamicProperty", "new value");This will set the value of the MyDynamicProperty property on the MyActivity activity to the string “new value”. The System.Workflow.ComponentModel.Activity.SetValue method is part of the System.Workflow.ComponentModel NuGet package library.