SetProperties Method
Collapse the table of content
Expand the table of content

ReportingService2006.SetProperties Method (String, Property[])


Sets one or more properties of a specified item.

Namespace:   ReportService2006
Assembly:  ReportService2006 (in ReportService2006.dll)

public void SetProperties(
	string Item,
	Property[] Properties


Type: System.String

The fully qualified URL of the item including the file name and extension.

Type: ReportService2006.Property[]

An array of Property objects that defines the properties and values to set for the item.

The table below shows header and permissions information on this operation.

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions


You can create new user-defined properties for an item by passing a Property object as a method argument. To remove a property from an item, set the property to an empty value. You cannot remove reserved properties. For a list of reserved item properties, see Report Server Item Properties.

If a specified property does not exist when the SetProperties method is called, the property is created and set to the value that you supply. If the property already exists, its value is overwritten. Setting an empty value for a property that does not exist does not affect the item or its properties.

If an error occurs, no properties are set.

Returns rsOperationNotSupportedSharePointMode error when Item=”/”.

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

class Sample
    static void Main(string[] args)
        ReportingService2006 rs = new ReportingService2006();
        rs.Url = "http://<Server Name>/_vti_bin/ReportServer/" +
        rs.Credentials = 

        Property[] props = new Property[1];
        Property setProp = new Property();
        setProp.Name = "Description";
        setProp.Value = "Sales by quarter and product category.";
        props[0] = setProp;

        string itemPath = "http://<Server Name>/Docs/Documents/" +
            "AdventureWorks Sample Reports/Sales Order Detail.rdl";

            rs.SetProperties(itemPath, props);
            Console.WriteLine("New description set on item {0}.", 
        catch (SoapException ex)
Return to top
© 2015 Microsoft