web.AllowUnsafeUpdates = true;, .
, , SPWeb AllowUnsafeUpdates, .
bool updates = web.AllowUnsafeUpdates;
web.AllowUnsafeUpdates = true;
web.AllowUnsafeUpdates = updates;
, SPWeb. catch try finally, web.AllowUnsafeUpdates = updates; finally.
, , , true, . SharePoint powershell , SPWeb .