ReportingService2006.SetResourceContents(String, Byte[], String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置资源的内容。
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
。