SetResourceContents Method
SQL Server 2000
ReportingService.SetResourceContents Method
Sets the contents of a resource.
Public Function SetResourceContents( _ ByVal Resource As String _ ByVal Contents() As Byte _ ByVal MimeType As String _ ) As Byte() Member of [Namespace].ReportingService
public Byte[] SetResourceContents( string Resource, Byte[] Contents, string MimeType ); Member of [Namespace].ReportingService
Parameters
- Resource
- The full path name of the resource.
- Contents
- The contents of a resource in the form of a byte array.
- MimeType
- Optional. The MIME type of the resource. This is returned through an out parameter.
Permissions
| Operation | Description |
|---|---|
| Read Content | Required for reading the contents of a resource. |
Remarks
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.