共用方式為


ReportingService2005.SetResourceContents 方法

Sets the contents of a resource.

命名空間:  ReportService2005
組件:  ReportService2005 (在 ReportService2005.dll 中)

語法

'宣告
Public Sub SetResourceContents ( _
    Resource As String, _
    Contents As Byte(), _
    MimeType As String _
)
'用途
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
)

參數

  • Resource
    型別:System.String
    The full path name of the resource.
  • Contents
    型別:array<System.Byte[]
    The contents of a resource in the form of a byte array.
  • MimeType
    型別:System.String
    Optional. The MIME type of the resource.

備註

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 nullnull 參考 (在 Visual Basic 中為 Nothing) (Nothing in Visual Basic).

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

請參閱

參考

ReportingService2005 類別

ReportService2005 命名空間