Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ReportingService2010.MoveItem Method

Moves and/or renames an item. This method applies to all item types.

Namespace:  ReportService2010
Assembly:  ReportService2010 (in ReportService2010.dll)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/MoveItem", RequestNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member MoveItem : 
        ItemPath:string * 
        Target:string -> unit 

Parameters

ItemPath
Type: System.String
The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.
Target
Type: System.String
The new fully qualified URL of the item including the file name and extension.

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

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

Depends on the item type:

SharePoint Mode Required Permissions

EditListItems() on Item AND AddListItems() on the parent folder in Target (if the target parent folder is different)

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.

If the target path is not in the same report server database or SharePoint site as the given item, an rsInvalidDestination error is returned.

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

No code example is currently available or this language may not be supported.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.