ReportingService2005.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 full path name of the resource.
- Contents
- Byte[]
资源中字节数组形式的内容。The contents of a resource in the form of a byte array.
- MimeType
- String
可选。Optional. 资源的 MIME 类型。The MIME type of the resource.
Remarks
下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.
SOAP 标头SOAP Headers | (In) BatchHeaderValue(In) BatchHeaderValue (Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue |
所需的权限Required Permissions | UpdateContent |
rsMissingParameter
如果 Contents
将参数的值设置为 null
Nothing
Visual Basic) 中 (,则会引发带有错误代码的 SOAP 异常。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).
Report Server 不会验证参数的值 MimeType
。The report server does not validate the value of the MimeType
parameter.