Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

How to get an SPList object in an multilingual sharepoint environment?

$
0
0

Hi,

i have developed a feature that changes permissions on libraries when activating a feature.

To get the SPList Objects I use the following code:          

SPList list = web.Lists["Customized Reports"];
setListPerissions(list);

list = web.Lists["Style Library"];
setListPerissions(list);

list = web.Lists["Site Pages"];
setListPerissions(list);

list = web.Lists["Site Assets"];
setListPerissions(list);

These libraries are sharepoint libraries that were automatically created, after activating a feature, creating a page or something else.

Now I tried to deploy and activate the feature on a different sharepoint site that uses another language.
The activation of the featue fails because it cannot find the list.

Is it possible to get the SPList object for these libraries by using another idetifier than the name?

Best regards

Marco












Viewing all articles
Browse latest Browse all 17574

Trending Articles



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