Remove Blocked File Types in SharePoint
You can remove the blocked file types in SharePoint programmatically by accessing a collection on an SPWebApplication object.
1 2 3 |
Collection<<span class="kwrd">string</span>> be = webApplication.BlockedFileExtensions; <span class="kwrd">if</span> (be.Contains(<span class="str">"dll"</span>)) be.Remove(<span class="str">"dll"</span>); webApplication.Update(); |
.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, “Courier New”, courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre … Read More »