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