1using (var web = (SPWeb)properties.Feature.Parent) 2{ 3 web.AllowUnsafeUpdates = true; 4 web.QuickLaunchEnabled = false; 5 web.Update(); 6}