Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ReportingService2006.SetResourceContents Method

Sets the contents of a resource.

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

[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetResourceContents", RequestNamespace = "http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
	ResponseNamespace = "http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void SetResourceContents(
	string Resource,
	byte[] Contents,
	string MimeType


Type: System.String
The fully qualified URL of the resource including the file name and extension.
Type: System.Byte[]
The contents of a resource in the form of a byte array.
Type: System.String
Optional. The MIME type of the resource.

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

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions


A SOAP exception is thrown with the error code rsMissingParameter if the value of the Contents parameter is set to null (Nothing in Visual Basic).

Community Additions

© 2015 Microsoft