ReportingService2005.SetResourceContents Method

Sets the contents of a resource.

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

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

Parameters

Resource
Type: System.String
The full path name of the resource.
Contents
Type: System.Byte[]
The contents of a resource in the form of a byte array.
MimeType
Type: System.String
Optional. The MIME type of the resource.

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).

The report server does not validate the value of the MimeType parameter.

Community Additions

ADD
Show: