RobotStudio event

Question for the Mastership

Hi,everybody
Now, I programed the PC SDK code with VC++. But I got a problem which is about the Mastership.

For the code , it request the Rapid and then do something over, then it must to dispose.
When I dispose the mastership , it show me a error,which the error is :

 error C2039: 'Dispose' : is  not the member of  'ABB::Robotics::Controllers::Mastership'

What's going on for this?