SPCheckinType.OverwriteCheckIn in Poweshell
-
07-10-2020 - |
题
How we can OverwriteCheckIn in Powershell? Please correct second parameter?
$ListItems[$i].File.CheckIn("Checkin automatically",SPCheckinType.OverwriteCheckIn) // second parameter seems wrong
解决方案
To reference static types and enums use a []
notation:
[Microsoft.SharePoint.SPCheckinType]::OverwriteCheckIn