Can not set a property value using Session.CustomActionData.
if (s.CustomActionData.ContainsKey(PropertyName0))
s.CustomActionData[PropertyName0] = "1";
else
s.CustomActionData.Add(PropertyName0, "1");
Although this code works, when the custom action ends, the properties remain unchanged. So how do I set the property value? I need to set the property value in one custom action and read it in another.
It is impossible to set a property in a deferred custom action. http://msdn.microsoft.com/en-us/library/aa370543(v=VS.85).aspx