namespace WindowsApplication1.TasksDatasetTableAdapters {
public partial class tbTasksTableAdapter
{
public object GetReturnValue(int commandIndex)
{
return this.CommandCollection[commandIndex].Parameters[0].Value;
}
}
}
TasksDatasetTableAdapters.tbTasksTableAdapter taCustomers = new WindowsApplication1.TasksDatasetTableAdapters.tbTasksTableAdapter ();
String taskName;
int taskPriority;
DateTime taskDueDate;
int returnValue;
taskName = "Test";
taskPriority = 1;
taskDueDate = System.DateTime.Now;
taCustomers.InsertTask(taskName, taskPriority, taskDueDate);
returnValue = (int)taCustomers.GetReturnValue(1);