0

I'm trying to carry out this example for deleting a content type in sharepoint: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcontenttypeusage.aspx

but I'm getting the error mentioned in the title of this question on the following line:

IList<SPContentTypeUsage> usages = SPContentTypeUsage.GetUsages(obsolete);
1
  • Are you sure you are not using the Client dll? Commented Jun 5, 2014 at 15:29

1 Answer 1

0

In my case I faced the same issue within a Sandboxed solution. So looks like it is a limitation for sandbox solution.

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.