Add Blocked File Types in SharePoint 2010
string webAppUrl = "Your URL";string myBlockFileType = "dll";Uri myUri = new Uri(webAppUrl);SPWebApplication myWebApp = SPWebApplication.Lookup(myUri);Collection<string> blockFileTypes = myWebApp.BlockedFileExtensions;blockFileTypes.Add(myBlockFileType);myWebApp.Update();
Hope this will helps you...
Happy Coding....
Comments
Post a Comment