I'm developing a Silverlight web part and can't use server-side objects like SPList. I normally get items from a list called "Locations" which has two fields - "Title" and "WOEID". The problem is I'd like my webpart to create that list in case it doesn't exist before getting data from it. How should I do that?

1 Answer 1


You can use the classes of the Microsoft.SharePoint.Client namespace.
Here is an example how to retrieve the lists of a site.
And here is an example how to add a new list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.