SPSite
SPWeb myWeb = mySite.OpenWeb();
SPUser
CheckInFileByUser(myFile,
{
mi.Invoke( file,
}
Before calling this code you will need to Check out the file, otherwise you will get an error.