Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Disable delete option for a list? But where ?

$
0
0

hi all,

via Console Application I can hide/disbale the Delete This List option:

static void Main(string[] args)
{
    SPSite site = new SPSite("http://localhost");
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["DemoList"];
    list.AllowDeletion = false;
    list.Update();
}

My question is, if I want do this in Empty SharePoint Project what I must to do ?

if any one has a suggestion or ides please tell me.

thanks in advance

Ahmad


SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>