ReportingService2006.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 fully qualified URL of the resource including the file name and extension.

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

(Out) ServerInfoHeaderValue
Required Permissions <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

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

Applies to