Cancel check-in file PDM API?

HI,

I have a add-in that runs when trigger check-in operation. And I'm doing some validation after that.

Is there any way to cancel check-in a file through add-in ?

If possible please let me know how to do that.

Thanks

SolidworksApi/macros