Share via


ReportingService2005.SetResourceContents(String, Byte[], String) 方法

定义

设置资源的内容。

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)

参数

Resource
String

资源的完整路径名。

Contents
Byte[]

资源中字节数组形式的内容。

MimeType
String

可选。 资源的 MIME 类型。

注解

下表显示了有关此操作的标头和权限信息。

SOAP 标头 (In) BatchHeaderValue

(Out) ServerInfoHeaderValue
所需的权限 UpdateContent

如果在 Visual Basic) 中将 参数的值设置为 null (NothingContents则会引发 SOAP 异常并引发错误代码rsMissingParameter

报表服务器不验证 参数的值 MimeType

适用于