You can use UserData to pass your own data through a method call.
An example how UserData is used can be found in our getting started client Write method found in BasicWriteDlg.cs.
A TextBox is passed via UserData into the write call and is used out of the write results to set the write result status in this TextBox.