Bagikan melalui


ReportingService2006.SetResourceContents Method

Sets the contents of a resource.

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

Syntax

'Declaration
Public Sub SetResourceContents ( _
    Resource As String, _
    Contents As Byte(), _
    MimeType As String _
)
'Usage
Dim instance As ReportingService2006 
Dim Resource As String 
Dim Contents As Byte()
Dim MimeType As String

instance.SetResourceContents(Resource, _
    Contents, MimeType)
public void SetResourceContents(
    string Resource,
    byte[] Contents,
    string MimeType
)
public:
void SetResourceContents(
    String^ Resource, 
    array<unsigned char>^ Contents, 
    String^ MimeType
)
member SetResourceContents : 
        Resource:string * 
        Contents:byte[] * 
        MimeType:string -> unit
public function SetResourceContents(
    Resource : String, 
    Contents : byte[], 
    MimeType : String
)

Parameters

  • Resource
    Type: System.String
    The fully qualified URL of the resource including the file name and extension.
  • Contents
    Type: array<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.

Remarks

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

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

EditListItems

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

See Also

Reference

ReportingService2006 Class

ReportService2006 Namespace