Example for terminating recurring billing (.Net)

As found from your "Recurring Billing Update" documentation, a recurring transaction could be cancelled using "SetTerminate" method. Do you have an example for the same? Also, how does one verify that the transaction has been terminated ?