Windows Workflow 4 Set Properies? -
i have invokemethod activity in sequence "myobject", , run methodname "mymethod". method takes no parameters, mymethod expects value there. if calling object c# code do
var myobject = new myobject { myparam = };
is there way in wf?
thanks.
it depends on how instance of myobject instantiated.
the easiest way set myparam property when creating instance. if in variables tab given scope, set default follows:
new myobject {.myparam = something}
note must use vb.net syntax.
alternately create custom class descends codeactivity , write c# code. won't need invokemethod activity then.
Comments
Post a Comment