ReportingService2005.SetResourceContents(String, Byte[], String) Method

Definition

Sets the contents of a resource.

public:
 void SetResourceContents(System::String ^ Resource, cli::array <System::Byte> ^ Contents, System::String ^ MimeType);
public void SetResourceContents (string Resource, byte[] Contents, string MimeType);
member this.SetResourceContents : string * byte[] * string -> unit
Public Sub SetResourceContents (Resource As String, Contents As Byte(), MimeType As String)

Parameters

Resource
String

The full path name of the resource.

Contents
Byte[]

The contents of a resource in the form of a byte array.

MimeType
String

Optional. The MIME type of the resource.

Remarks

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

SOAP Headers (In) BatchHeaderValue

(Out) ServerInfoHeaderValue
Required Permissions UpdateContent

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.

Applies to