Enable/Disable Client Integration in SharePoint Programmatically

If ever you need to enable/disable client integration in sharepoint via code

 using (SPSite siteCollection = new SPSite("http://{your site url}"))
            {
   
                //enable client integration 
                siteCollection.WebApplication.IisSettings[SPUrlZone.Default].EnableClientIntegration = true;
   
                //disable client integration 
                siteCollection.WebApplication.IisSettings[SPUrlZone.Default].EnableClientIntegration = false;

                siteCollection.WebApplication.Update();

            }

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *