Hello Sir,
Sir Acually I have have a handleExternalEvent activity embedded in a while activity ...all in sequentialworkflow. I now have my class UIEventHandlerEventargs which inherits ExternaldataEventArgs.
In the handleExternalEvent activity i have an handler named onreceivemessage() which takes two parameter ....
Now the problem is when i say
public void OnRecieveMessage(object sender, ExternalDataEventArgs e)
it does give an error but i want it as
public void OnRecieveMessage(object sender, UIEventHandlerArgs e)
which gives me error ... the mapping of eventname to handler related things i have done ... Please could u help me out... Hoping for your response.

Windows Workflow
CJ Clark
The second parameter of the event handler must be typeof(ExternalDataEventArgs) not a derivative. If you want to access the properties on your custom event args just cast like the following:
private void OnRecieveMessage(object sender, ExternalDataEventArgs e)
{
UIEventHandlerArgs uiEventHandlerArgs = (UIEventHandlerArgs)e;
}
You can also bind to the e Parameter in the property browser after setting the EventName property on the HandleExternalEventActivity. Then you can just use the bound variable in the event handler instead of the parameter.