Méthode ReportingService2005.SetResourceContents

Sets the contents of a resource.

Espace de noms :  ReportService2005
Assembly :  ReportService2005 (en ReportService2005.dll)

Syntaxe

'Déclaration
Public Sub SetResourceContents ( _
    Resource As String, _
    Contents As Byte(), _
    MimeType As String _
)
'Utilisation
Dim instance As ReportingService2005 
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
)

Paramètres

  • Resource
    Type : System.String
    The full path name of the resource.
  • 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.

Notes

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 nullune référence Null (Nothing dans Visual Basic) (Nothing in Visual Basic).

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

Voir aussi

Référence

ReportingService2005 Classe

Espace de noms ReportService2005