ReportingService2006.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

资源的完全限定 URL,其中包括文件名和扩展名。

Contents
Byte[]

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

MimeType
String

可选。 资源的 MIME 类型。

注解

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

SOAP 标头 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
所需的权限 <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

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

适用于