■
Note
The names defined within a
Dictionary
object must map to public properties, not public member vari-
ables! If you attempt to do so, you will generate a runtime exception.
To try this out firsthand, begin by updating the code within Main() to define a
Dictionary containing two data items. The first item is a string that represents
the error message to display if the name is too long; the second item is a numeric value that will be
used to specify the maximum length of the user name. To register these parameters with the WF
runtime engine, pass in your Dictionary object as a second parameter to the CreateWorkflow()
method. Here are the relevant updates:
using (WorkflowRuntime workflowRuntime = new WorkflowRuntime())
{
...
Do'stlaringiz bilan baham: |