This page should mention that the ItemType parameter is case-sensitive. Also, the correct value for a shared dataset is "DataSet", not "Dataset" as mentioned in the method description at the top of the page.
Using incorrect case will result in the following error: The value of parameter 'ItemType' is not valid. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidParameterException: The value of parameter 'ItemType' is not valid.
↧