ReportingService2005.MoveItem 메서드

Moves or renames an item.

네임스페이스:  ReportService2005
어셈블리:  ReportService2005(ReportService2005.dll)

public void MoveItem(
	string Item,
	string Target

매개 변수

유형: System.String
The full path name of the item.
유형: System.String
The new full path name of the item.

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

SOAP Headers

(In) BatchHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

Depends on the item type:

If an item inherits security policies from its parent, moving the item causes it to inherit the security policies of the target folder. If an item does not inherit security policies from its parent, moving the item does not cause its security policies to change.

When My Reports is enabled, you cannot move the /My Reports or /Users folders. An attempt to do so produces a SOAP exception with the error code rsInvalidMove.

Moving or renaming items in the report server database modifies the ModifiedBy and ModifiedDate properties of the item and the source and target folders of the item.

To compile the following code example, you must reference the Reporting Services WSDL and import certain namespaces. For more information, see Compiling and Running Code Examples. The following example code moves the Employee Sales Summary report from the Samples folder to the root folder.

using System;
using System.Web.Services.Protocols;

class Sample
   public static void Main()
      ReportingService2005 rs = new ReportingService2005();
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials;

      string currentPath = "/SampleReports/Employee Sales Summary";
      string targetPath = "/Employee Sales Summary";

         rs.MoveItem(currentPath, targetPath);

      catch (SoapException e)

커뮤니티 추가 항목